/* ==========================================================================
   Polish layer (loaded last): readable type scale, livelier buttons,
   smoother scroll behaviour, restrained motion. Layout, palette and copy
   are untouched; this file only overrides sizes, states and transitions.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Type scale (body >= 17px, small >= 15px, labels >= 14px, controls >= 16px) */
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-small: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --fs-label: 0.875rem;
  --fs-control: 1rem;
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
  --fs-h3-lg: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 3vw, 3.75rem);
  --lh-body: 1.65;
  --lh-head: 1.25;
  --measure: 34em; /* paragraph width, well under 70ch */

  /* Colour tweaks for AA contrast */
  --muted: #52627a;
  --blue-text: #0558c9;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.25, 1);
  --dur-fast: 220ms;
  --dur-base: 280ms;

  /* Elevation for interactive elements */
  --shadow-btn: 0 2px 6px rgba(7, 27, 48, 0.12);
  --shadow-btn-hover: 0 12px 26px rgba(7, 27, 48, 0.22);
  --shadow-gold-hover: 0 12px 28px rgba(255, 196, 59, 0.32);

  /* Header height: regular and compact (compact only differs on desktop) */
  --hdr: 86px;
  --hdr-s: 72px;
  --ind-bottom: 22px;
}
@media (min-width: 1550px) {
  :root {
    --hdr: 90px;
    --hdr-s: 74px;
  }
}
@media (max-width: 1200px) {
  :root {
    --hdr: 100px;
    --hdr-s: 100px;
    --ind-bottom: 4px;
  }
}
@media (max-width: 760px) {
  :root {
    --hdr: 76px;
    --hdr-s: 76px;
  }
}

/* Anchor scrolling and reveals live in interactions.css. */
[tabindex="-1"]:focus {
  outline: none;
}

/* ---------- Base typography ---------- */
body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
h1,
h2 {
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h2,
.about-copy h2,
.principles h2,
.partner-heading h2,
.coverage h2,
.contact h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  letter-spacing: -0.02em;
}
.dialog-header h2,
.detail-title {
  font-size: var(--fs-h3-lg);
  line-height: var(--lh-head);
}
.eyebrow,
.products .eyebrow,
.hero-eyebrow,
.dialog-header .eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
}
.eyebrow:not(.hero-eyebrow):not(.light-eyebrow) {
  color: var(--blue-text);
}

/* Header / navigation text */
.utility-bar,
.utility-inner {
  font-size: var(--fs-label);
  font-weight: 500;
}
.utility-inner {
  height: 36px;
}
.nav-link {
  font-size: var(--fs-control);
  font-weight: 600;
}
.language-switch,
.language-button {
  font-size: var(--fs-control);
}
.language-button {
  font-weight: 600;
  min-width: 44px;
  color: #51627a;
}
.language-button.selected {
  color: var(--navy);
  background: #eaf2ff;
  font-weight: 800;
}
.mobile-nav a {
  font-size: 1.0625rem;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Buttons and links */
.button,
.header-cta,
.hero-buttons .button,
.coverage .button,
.contact-buttons .button,
.result-actions .button {
  font-size: var(--fs-control);
  font-weight: 700;
  line-height: 1.3;
  min-height: 48px;
  padding-inline: 22px;
  gap: 14px;
}
.header-cta {
  min-height: 46px;
  padding-inline: 18px;
}
.text-link,
.section-heading > .text-link,
.light-link,
.contact-details .text-link {
  font-size: var(--fs-control);
  font-weight: 700;
  min-height: 44px;
}
.text-link,
.section-heading > .text-link {
  color: var(--blue-text);
}
.light-link {
  color: var(--gold);
}

/* Hero */
.hero-description {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: min(100%, 31em);
  color: #e1e9f2;
}
.hero-caption {
  font-size: var(--fs-small);
  font-weight: 500;
}
.hero-buttons {
  flex-wrap: wrap;
}

/* Trust strip */
.trust-item strong {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
}
.trust-item div > span {
  font-size: var(--fs-small);
  line-height: 1.45;
  font-weight: 500;
  max-width: none;
  color: #c4d3e2;
}

/* Section copy */
.section-intro {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
  color: var(--muted);
}
.partner-heading > p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 28em;
  color: var(--muted);
}
.partner-note {
  font-size: var(--fs-small);
  font-weight: 500;
  color: #4d5d73;
  max-width: 60ch;
}

/* Product cards: flex column keeps links aligned at the bottom of every card */
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.product-card p {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.55;
  min-height: 0;
  margin-bottom: 12px;
}
.card-link {
  font-size: var(--fs-small);
  font-weight: 700;
  margin-top: auto;
  padding-top: 12px;
  color: var(--blue-text);
}
.card-arrow {
  width: 32px;
  height: 32px;
}
.product-tag,
.product-number {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(4, 18, 34, 0.7);
}
.products-note {
  font-size: var(--fs-small);
  font-weight: 500;
  flex-wrap: wrap;
}
.products-note a {
  padding: 10px 0;
  color: var(--blue-text);
}
.note-right {
  font-size: var(--fs-label);
  color: #55657b;
}

/* About + principles */
.about-copy > p:not(.eyebrow) {
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: var(--measure);
  color: #e0e8f1;
}
/* A 91% opaque panel gains nothing from blur; dropping it cuts scroll repaint cost. */
.capability-panel {
  backdrop-filter: none;
}
.capability h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}
.capability p {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.5;
  color: #cbd7e4;
}
.principle h3 {
  font-size: 1.1875rem;
  font-weight: 750;
}
.principle p {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
  max-width: none;
}

/* Coverage + contact */
.coverage p:not(.eyebrow) {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
  color: #d9e3ee;
}
.coverage-callout {
  width: 390px;
}
@media (max-width: 1000px) {
  .coverage-callout {
    width: 300px;
  }
}
@media (max-width: 760px) {
  .coverage-callout {
    width: 100%;
  }
}
.coverage-point strong {
  font-size: 1.0625rem;
}
.coverage-point div > span {
  font-size: var(--fs-small);
  font-weight: 500;
  color: #d0dbe8;
}
.contact-inner > div > p:not(.eyebrow) {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
}
.contact-details h3 {
  font-size: 1.125rem;
}
.contact-details p {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
}

/* Footer */
.footer-identity > p {
  font-size: var(--fs-small);
  font-weight: 500;
  color: #475a70;
  max-width: 24em;
}
.footer-products {
  font-size: var(--fs-control);
  font-weight: 700;
}
.footer-nav h3 {
  font-size: 1.0625rem;
}
.footer-links a {
  font-size: var(--fs-control);
  font-weight: 500;
  color: #475a70;
}
.footer-bottom {
  font-size: var(--fs-small);
  font-weight: 500;
  color: #475a70;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Dialogs and forms */
.catalog-search input,
.catalog-search input,
form input,
form select,
form textarea,
#inquiry-text {
  font-size: var(--fs-control);
}
.catalog-results,
.form-note,
.detail-note,
#copy-status {
  font-size: var(--fs-small);
  font-weight: 500;
}
.catalog-item-title {
  font-size: 1.0625rem;
}
.catalog-item-description {
  font-size: var(--fs-small);
  font-weight: 500;
}
.catalog-empty,
.detail-description,
.inquiry-intro,
.inquiry-ready {
  font-size: var(--fs-body);
}
.detail-list li {
  font-size: var(--fs-small);
  font-weight: 500;
}
form > label,
.form-grid label {
  font-size: var(--fs-small);
  font-weight: 650;
}

/* ---------- Layout adjustments needed by the larger type ---------- */
.menu-toggle {
  width: 44px;
}
.product-image {
  flex-shrink: 0;
}
/* The 16px nav needs a little breathing room just above the tablet breakpoint. */
@media (min-width: 1201px) and (max-width: 1260px) {
  .desktop-nav {
    gap: 16px;
  }
  .header-actions {
    gap: 6px;
  }
  .brand-logo {
    width: 270px;
  }
}
@media (max-width: 760px) {
  .utility-inner {
    height: auto;
    min-height: 36px;
    padding-block: 6px;
    text-align: center;
    line-height: 1.35;
  }
}
@media (max-width: 1000px) {
  /* 2 x 2 groups keep bigger text from being squeezed into narrow columns */
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    padding-block: 12px;
  }
  .trust-grid .trust-item {
    padding: 14px 16px;
    border-right: 0;
  }
  .trust-grid .trust-item:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid #305067;
  }
  .trust-grid .trust-item:nth-child(even) {
    padding-left: 24px;
    padding-right: 0;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .product-image {
    height: 150px;
  }
  .principles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 0;
  }
  .principle,
  .principle:first-child,
  .principle:last-child {
    padding: 0 20px;
    border-right: 1px solid var(--line);
  }
  .principle:nth-child(odd) {
    padding-left: 0;
  }
  .principle:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }
}
@media (max-width: 760px) {
  .brand-logo {
    width: 210px;
  }
  .language-switch > span[aria-hidden] {
    display: none;
  }
  .language-switch {
    gap: 0;
  }
  .hero-description {
    max-width: 100%;
  }
  .hero-buttons .button {
    padding-inline: 18px;
    gap: 12px;
  }
  .capability-panel {
    gap: 22px 16px;
  }
  .section-heading > .text-link {
    padding: 0;
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-image {
    height: 168px;
  }
  .capability-panel {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .principle,
  .principle:nth-child(odd),
  .principle:nth-child(even) {
    padding: 0 !important;
    border: 0;
  }
  .trust-grid .trust-item {
    gap: 12px;
  }
  .hero-buttons .button {
    flex: 1 1 100%;
  }
}
@media (max-width: 360px) {
  .brand-logo {
    width: 170px;
  }
  .language-button,
  .menu-toggle {
    min-width: 40px;
    width: 40px;
  }
  .hero-buttons .button {
    font-size: var(--fs-control);
  }
  .trust-grid {
    grid-template-columns: 1fr !important;
  }
  .trust-grid .trust-item,
  .trust-grid .trust-item:nth-child(odd),
  .trust-grid .trust-item:nth-child(even) {
    padding-inline: 0 !important;
    border-right: 0 !important;
  }
}

/* ---------- Header: translucent glass + compact when scrolled ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  transition:
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.header-inner {
  height: var(--hdr);
  transition: height var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 28px rgba(7, 27, 48, 0.09);
}
.site-header.is-scrolled .header-inner {
  height: var(--hdr-s);
}
.brand-logo {
  transition: width var(--dur-base) var(--ease-out);
}
@media (min-width: 1201px) {
  .site-header.is-scrolled .brand-logo {
    width: 270px;
  }
}

/* ---------- Nav links: underline grows from the left, active marker slides ---------- */
.desktop-nav {
  position: relative;
}
.nav-link {
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (min-width: 761px) and (max-width: 1200px) {
  .nav-link::before {
    bottom: -4px;
  }
}
.nav-link.active::before {
  display: none;
}
.desktop-nav.has-indicator .nav-link.active::after {
  display: none;
}
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: var(--ind-bottom);
  width: 100px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0;
  transform-origin: left center;
  pointer-events: none;
  transition:
    transform 420ms var(--ease-out),
    opacity var(--dur-fast) ease;
}

/* ---------- Interactive elements ---------- */
.button,
.text-link,
.icon-button,
.language-button,
.motion-button,
.footer-products,
.catalog-item,
.card-arrow,
.mobile-nav a {
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}
.button .icon,
.text-link .icon,
.footer-products .icon {
  transition: transform var(--dur-base) var(--ease-out);
}
.button {
  box-shadow: var(--shadow-btn);
}
.button-soft:hover {
  background: #dde9f5;
}

/* Gold primary buttons: soft sheen sweeps across on hover */
.button-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

/* Hover only on devices that really hover */
@media (hover: hover) {
  .button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
  }
  .hero .button-gold:hover,
  .coverage .button-gold:hover {
    box-shadow: var(--shadow-gold-hover);
  }
  .button-gold:hover::before {
    transform: translateX(120%);
    transition: transform 300ms var(--ease-out);
  }
  .button:hover .icon,
  .text-link:hover .icon,
  .footer-products:hover .icon {
    transform: translateX(4px);
  }
  .button-outline:hover {
    background: rgba(255, 255, 255, 0.16);
  }
  .text-link:hover {
    text-decoration: none;
    transform: translateX(2px);
  }
  .text-link:hover > span:first-child {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
  }
  .icon-button:hover,
  .motion-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(7, 27, 48, 0.16);
  }
  .motion-button:hover {
    background: #cfe2f7;
  }
  .language-button:hover {
    transform: translateY(-2px);
  }
  .footer-products:hover {
    transform: translateX(2px);
  }
  .nav-link:hover::before {
    transform: scaleX(1);
  }
  .nav-link:hover {
    color: var(--blue);
  }
  .mobile-nav a:hover {
    transform: translateX(4px);
  }
  .catalog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 54, 98, 0.12);
  }
  /* Product cards: lift, image zoom, arrow nudge */
  .product-card {
    transition:
      transform var(--dur-base) var(--ease-out),
      box-shadow var(--dur-base) var(--ease-out),
      border-color var(--dur-base) var(--ease-out);
  }
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(11, 54, 98, 0.18);
  }
  .product-card:hover .product-image img {
    transform: scale(1.04);
  }
  .product-card:hover .card-arrow {
    transform: translate(2px, -2px);
  }
  .footer-links a:hover {
    transform: translateX(3px);
  }
  .partner-group > div:hover img {
    opacity: 1;
    transform: scale(1.05);
  }
}
@media (hover: none) {
  /* Touch devices: never leave a card stuck in its "hover" pose after a tap. */
  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 14px #102c4a0b;
  }
  .product-card:hover .product-image img {
    transform: none;
  }
}
.product-image img {
  transition: transform 600ms var(--ease-out);
}
.footer-links a {
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

/* Pressed feedback: works for mouse, pen and touch */
.button:active,
.icon-button:active,
.motion-button:active,
.language-button:active,
.catalog-item:active,
.to-top:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-btn);
  transition-duration: 90ms;
}
.product-card:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 90ms;
}
.text-link:active {
  transform: scale(0.97);
  transition-duration: 90ms;
}

/* Focus ring: 3px, offset, high contrast (gold on dark sections) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0b5fe0;
  outline-offset: 4px;
}
.hero :focus-visible,
.about :focus-visible,
.coverage :focus-visible {
  outline-color: var(--gold);
}
.product-card:focus-visible {
  outline-offset: 5px;
}

/* Partner logos: slightly faded until hovered */
.partner-group img {
  opacity: 0.75;
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

/* ---------- Static section title accent line ---------- */
.section-heading h2::after,
.partner-heading h2::after,
.about-copy h2::after,
.coverage h2::after,
.contact h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--gold);
}
/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 10px 26px rgba(7, 27, 48, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base),
    box-shadow var(--dur-base) var(--ease-out);
}
.to-top .icon {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg); /* static: reuses the right-arrow icon */
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
@media (hover: hover) {
  .to-top.is-visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(7, 27, 48, 0.36);
  }
}
.to-top:focus-visible {
  outline-color: #0b5fe0;
}

/* ---------- Reduced motion: calm, static equivalents ---------- */
@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button:active,
  .text-link:hover,
  .text-link:active,
  .icon-button:hover,
  .motion-button:hover,
  .language-button:hover,
  .footer-products:hover,
  .footer-links a:hover,
  .mobile-nav a:hover,
  .catalog-item:hover,
  .product-card:hover,
  .product-card:active,
  .product-card:hover .product-image img,
  .product-card:hover .card-arrow,
  .partner-group > div:hover img,
  .button:hover .icon,
  .text-link:hover .icon,
  .footer-products:hover .icon {
    transform: none;
  }
  .button-gold::before,
  .nav-link::before {
    display: none;
  }
  .to-top {
    transform: none;
  }
  .section-heading h2::after,
  .partner-heading h2::after,
  .about-copy h2::after,
  .coverage h2::after,
  .contact h2::after {
    transition: none;
  }
}

/* ==========================================================================
   Kemitraan (Partner Logos) Continuous Marquee & Responsive Carousel
   ========================================================================== */
.partner-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
@media (max-width: 760px) {
  .partner-heading {
    display: block;
    gap: 0;
  }
}

/* Hide legacy manual controls so heading and layout stay clean */
.partner-controls {
  display: none !important;
}

/* Outer marquee viewport */
.partner-logos,
.partner-logos.marquee-ready {
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 24px;
  padding-block: 10px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.partner-logos.is-dragging {
  cursor: grabbing;
}

@media (max-width: 480px) {
  .partner-logos,
  .partner-logos.marquee-ready {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 2.5%,
      #000 97.5%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 2.5%,
      #000 97.5%,
      transparent 100%
    );
  }
}

/* Marquee track */
.partner-track {
  display: flex !important;
  width: max-content !important;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  margin: 0 !important;
  padding: 0 !important;
}

/* Repeating groups */
.partner-group {
  display: flex !important;
  width: max-content !important;
  align-items: center;
  flex-shrink: 0;
  gap: 28px;
  padding-right: 28px;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 1024px) {
  .partner-group {
    gap: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 760px) {
  .partner-group {
    gap: 16px;
    padding-right: 16px;
  }
}

/* Individual partner logo items */
.partner-item,
.partner-group > div,
.partner-logos > div {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 186px; /* Desktop: ~5-6 logos visible in 1240px container */
  height: 64px;
  padding: 8px 16px;
}

@media (max-width: 1024px) {
  .partner-item,
  .partner-group > div,
  .partner-logos > div {
    width: 165px; /* Tablet: ~3-4 logos visible in ~704px container */
    height: 58px;
    padding: 6px 14px;
  }
}

@media (max-width: 760px) {
  .partner-item,
  .partner-group > div,
  .partner-logos > div {
    /* Mobile: ~1.5 - 2.5 logos visible (next logo partially visible) */
    width: clamp(130px, 44vw, 170px);
    height: 52px;
    padding: 6px 10px;
  }
}

/* Logo image styling: aspect ratio strictly preserved, vertically centered, no distortion */
.partner-item img,
.partner-group img,
.partner-logos img {
  display: block;
  max-width: 86%;
  max-height: 42px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  opacity: 0.8;
  mix-blend-mode: multiply;
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

/* Wide logo (Terumo) aspect-ratio normalization */
.partner-item img[src*="terumo"],
.partner-group img[src*="terumo"],
.partner-logos img[src*="terumo"] {
  max-width: 96%;
  max-height: 28px;
}

@media (max-width: 760px) {
  .partner-item img,
  .partner-group img,
  .partner-logos img {
    max-height: 32px;
    max-width: 86%;
  }
  .partner-item img[src*="terumo"],
  .partner-group img[src*="terumo"],
  .partner-logos img[src*="terumo"] {
    max-height: 22px;
    max-width: 96%;
  }
}

@media (hover: hover) {
  .partner-group > div:hover img,
  .partner-item:hover img {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ---------- Navbar refinement (final override) ----------
   Desktop: smaller logo + balanced nav centred between logo and actions.
   Tablet (<=1180px): single compact row with hamburger menu instead of a
   two-row header with an oversized logo. */
:root {
  --hdr: 76px;
  --hdr-s: 72px;
}
.header-inner {
  height: 76px;
  gap: 28px;
}
.brand-logo {
  width: 190px;
}
.desktop-nav {
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}
@media (min-width: 1181px) {
  .desktop-nav { display: flex; }
}
.nav-link {
  font-size: 14px;
}
.header-actions {
  gap: 8px;
}
.language-button {
  min-width: 38px;
}
.header-cta {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 14px;
}
@media (min-width: 1550px) {
  .header-inner { height: 80px; }
  .brand-logo { width: 210px; }
  .desktop-nav { gap: 32px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  :root {
    --hdr: 72px;
    --hdr-s: 72px;
  }
  .header-inner {
    display: flex;
    height: 72px;
    padding-block: 0;
    gap: 12px;
  }
  .brand { grid-column: auto; grid-row: auto; }
  .brand-logo { width: 180px; }
  .desktop-nav { display: none; }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .menu-toggle { display: inline-flex; }
}

/* Header logo: nudge down a few px so it optically aligns with the nav text. */
.site-header .brand-logo {
  margin-top: 6px;
}

/* Industry-references section is disabled for now (not deleted). Remove the
   `hidden` attribute from #partners and [data-disabled="partners"] links in
   index.html to bring it back. */
[data-disabled][hidden] {
  display: none !important;
}

/* ---------- Vision & mission, legal identity, procurement flow ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.vm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 30px;
}
.vm-vision {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.vm-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.vm-vision h3 { color: var(--gold); }
.vm-card p {
  margin: 0;
  line-height: 1.65;
}
.vm-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.6;
}
.legal {
  background: var(--surface);
}
.legal-list {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.legal-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.legal-list > div:first-child { border-top: 0; }
.legal-list dt {
  font-weight: 700;
  color: var(--muted);
}
.legal-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.legal-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.flow-step {
  border-top: 3px solid var(--blue);
  padding-top: 16px;
}
.flow-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}
.flow-step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 1000px) {
  .vm-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .legal-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .flow-steps { grid-template-columns: 1fr; }
  .vm-card { padding: 22px 20px; }
}

/* Official email: contact block, footer. */
.contact-email { margin-bottom: 20px; }
.contact-details .email-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
  text-decoration: none;
}
.contact-details .email-link:hover { color: var(--blue); text-decoration: underline; }
.footer-email { margin: 10px 0 0; }
.footer-email a {
  color: #0065d4;
  font-weight: 600;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-email a:hover { color: var(--navy); }

/* Logo shrinks slightly (never grows) when the header is compact on scroll. */
@media (min-width: 1181px) {
  .site-header.is-scrolled .brand-logo { width: 172px; }
}
@media (min-width: 1550px) {
  .site-header.is-scrolled .brand-logo { width: 190px; }
}

/* Keep the inline nav centred just above the hamburger breakpoint. */
@media (min-width: 1181px) {
  .header-actions { margin-left: 0; }
}

/* Very narrow phones: keep the hamburger inside the viewport. */
@media (max-width: 380px) {
  .brand-logo { width: 150px; }
  .header-inner { gap: 6px; }
}
@media (max-width: 340px) {
  .brand-logo { width: 136px; }
}

/* About: with the capability panel disabled, let the copy use the full width. */
.about-inner:not(:has(> .capability-panel:not([hidden]))) {
  grid-template-columns: minmax(0, 720px);
}
