/* A single navigation row: identity, main pages, then customer utilities. */
:root { --header-action-bg: #a6400b; --header-action-ink: #fff; }
html[data-theme="dark"] { --header-action-bg: #ef8b4d; --header-action-ink: #181c18; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .header-inner {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1360px);
  min-height: 80px;
  gap: 20px;
}
.site-header .brand { gap: 10px; }
.site-header .brand-logo { width: 46px; height: 46px; }
.site-header .brand-name { font-size: .82rem; letter-spacing: .015em; max-width: 145px; }
.site-header .desktop-nav, .site-header .header-actions { display: none; }
.site-header .mobile-menu { display: flex; align-items: center; gap: 8px; }
.site-header .theme-toggle { border-color: transparent; background: transparent; }
.site-header .theme-toggle:hover, .site-header .language:hover { background: var(--paper-muted); border-color: var(--line); }
.site-header .language { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-height: 44px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; }
.site-header .navbar-whatsapp { width: 36px; min-height: 44px; }
.site-header .navbar-whatsapp > span { display: none; }
.site-header .commerce-cart-link {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--header-action-bg);
  border: 1px solid var(--header-action-bg);
  border-radius: 4px;
  color: var(--header-action-ink);
  font-size: .875rem;
}
.site-header .commerce-cart-link:hover { filter: brightness(1.08); }
.site-header .commerce-cart-link .commerce-cart-count { min-width: 22px; height: 22px; background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .site-header .commerce-cart-link .commerce-cart-count { color: var(--ink); }
.site-header .mobile-menu nav { top: calc(100% + 12px); width: min(calc(100vw - 40px), 350px); padding: 10px; border-radius: 6px; }
.site-header .mobile-menu nav a { padding: 12px 14px; border-bottom-color: var(--line); font-size: .9375rem; }
.site-header .mobile-menu nav a:last-child { border-bottom: 0; }
.site-header .mobile-menu-toggle { border: 1px solid transparent; border-radius: 4px; }
.site-header .mobile-menu-toggle:hover { background: var(--paper-muted); border-color: var(--line); }
@media (min-width: 1181px) {
  .site-header .header-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 28px; width: min(calc(100% - 64px), 1360px); }
  .site-header .desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px,1.6vw,25px); }
  .site-header .desktop-nav a { display: inline-flex; align-items: center; min-height: 80px; padding: 0; border-bottom-width: 2px; font-size: .875rem; letter-spacing: 0; }
  .site-header .header-actions { display: flex; align-items: center; gap: 16px; }
  .site-header .header-tools { display: flex; align-items: center; gap: 5px; padding-right: 16px; border-right: 1px solid var(--line); }
  .site-header .mobile-menu { display: none; }
}
@media (max-width: 600px) {
  .site-header .header-inner { min-height: 76px; width: calc(100% - 32px); gap: 10px; }
  .site-header .brand-name { max-width: 95px; font-size: .72rem; }
  .site-header .mobile-menu { gap: 4px; }
  .site-header .mobile-menu .commerce-cart-link { gap: 6px; padding: 8px; }
}
@media (max-width: 360px) { .site-header .brand-name { display: none; } }
@media print { .site-header { display: none !important; } }

/* Five equally sized client identities per row, without cropping the logos. */
.clients-grid, .home-page .clients-grid { grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 16px; }
.client-card, .home-page .client-card { display: grid; grid-template-rows: 88px minmax(2.8em,auto); align-content: center; gap: 12px; min-height: 170px; padding: 18px; }
.client-card img, .home-page .client-card img { width: 100%; max-width: 160px; height: 80px; object-fit: contain; margin-inline: auto; }
.client-card .client-card-name, .home-page .client-card-name { margin: 0; font-size: .875rem; line-height: 1.4; align-self: start; }
.client-card--text, .home-page .client-card--text { display: flex; align-items: center; justify-content: center; text-align: center; }
.client-card--text .client-card-name, .home-page .client-card--text .client-card-name { align-self: center; width: 100%; max-width: 100%; margin: 0; font-size: .875rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .clients-grid, .home-page .clients-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .client-card, .home-page .client-card { min-height: 155px; padding: 16px; }
}
@media (max-width: 600px) {
  .clients-grid, .home-page .clients-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .client-card, .home-page .client-card { grid-template-rows: 64px minmax(2.8em,auto); gap: 10px; min-height: 140px; padding: 14px; }
  .client-card img, .home-page .client-card img { height: 60px; max-width: 130px; }
}

/* Header and footer marks share exactly the same vertical alignment. */
:root { --shell-gutter: clamp(16px,2.5vw,40px); }
.site-header .header-inner, .site-footer > .container {
  width: min(calc(100% - 2 * var(--shell-gutter)),1360px);
  max-width: 1360px;
  margin-inline: auto;
}

/* Give the technical explanation its own breathing room beside the diagram. */
.home-page .proof-section { padding-block: clamp(56px,6vw,88px); }
.home-page .proof-grid { gap: clamp(40px,5vw,76px); align-items: start; }
.home-page .proof-copy { padding-top: 8px; min-width: 0; }
.home-page .proof-copy h2 { margin-bottom: 24px; }
.home-page .proof-copy .proof-lead { margin-bottom: 0; }
.home-page .proof-copy .method-steps { margin-top: 30px; }
.home-page .proof-copy .method-step { padding-block: 20px; gap: 18px; }
.home-page .proof-copy .method-footer { margin-top: 26px; padding: 22px; gap: 18px; }
.cart-page .commerce-calculator fieldset { display: grid; gap: 20px; }
.cart-page .commerce-calculator .field-row { margin-bottom: 0; }
.cart-page fieldset > .button { margin-top: 0; justify-content: center; }
.quote-optional { padding-block: 14px; border-block: 1px solid var(--line); }
.quote-optional summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.quote-optional[open] .field-row { margin-top: 16px; }
@media (max-width: 700px) {
  .home-page .proof-grid { gap: 36px; }
  .home-page .proof-copy { padding-top: 0; }
}
