body,
body :is(header, .request-card, .quote-card, .lookup, .tracking-result, .modal-card, .quote-modal-card, .call-dialog, .drawer, .search-results-area) {
  --soft-base: #e8eff5;
  --soft-text: #334454;
  --soft-light: rgba(255, 255, 255, 0.2);
  --soft-shadow: rgba(90, 105, 132, 0.3);
}

body :is(.hero, .hub-search-container, .service-hero, .about-closing, .faq-intro, .faq-cta, footer) {
  --soft-base: #0d2943;
  --soft-text: #f0f5fa;
  --soft-light: rgba(91, 128, 163, 0.08);
  --soft-shadow: rgba(0, 8, 20, 0.5);
}

body :is(.service-aside, .service-footer-cta, .other-services) {
  --soft-base: #dfe8f0;
  --soft-text: #334454;
  --soft-light: rgba(255, 255, 255, 0.2);
  --soft-shadow: rgba(90, 105, 132, 0.3);
}

body .closing-cta {
  --soft-base: var(--blue-light);
  --soft-text: #334454;
  --soft-light: rgba(255, 255, 255, 0.2);
  --soft-shadow: rgba(90, 105, 132, 0.3);
}

@media (max-width: 760px) {
  body header :is(.nav, .site-nav) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(84px, 28vw, 210px) minmax(0, 1fr);
    grid-template-rows: minmax(64px, auto);
    height: auto;
    min-height: 70px;
    align-items: center;
    gap: 0 2px;
    padding: 0;
  }

  body header :is(.nav, .site-nav) > .logo {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    justify-content: center;
  }

  body header .logo img {
    width: 210px;
    max-width: 100%;
    height: 64px;
    object-fit: contain;
  }

  body header .header-actions {
    display: contents;
  }

  body header :is(.btn, .button, .back-link),
  body header .header-actions :is(.btn, .button) {
    --soft-base: var(--surface);
    --soft-text: #334454;
    --soft-light: rgba(255, 255, 255, 0.2);
    --soft-shadow: rgba(90, 105, 132, 0.3);
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 4px 2px;
    font-size: clamp(8px, 2.3vw, 12px);
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  body .site-header .header-actions:has(> a:nth-child(2)) > a {
    grid-column: 3;
    padding: 4px 2px;
    font-size: clamp(8px, 2.3vw, 12px);
    line-height: 1.4;
    letter-spacing: 0;
  }

  body .site-header .header-actions:has(> a:nth-child(2)) > a:first-child {
    grid-column: 1;
    justify-self: start;
  }

  body header .nav > .nav-links {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-start;
    padding: 0;
  }

  body header .nav > .nav-links > .about-link,
  body header .nav > .nav-links .services-dropdown summary,
  body header .nav > .nav-links .services-dropdown summary::after {
    color: #04203c;
  }

  body header .nav > .nav-links .services-menu {
    right: auto;
    left: 0;
    max-width: 92vw;
  }
}

html body :is(button, .btn, .button, .back-link):is(:enabled, :disabled, a),
html body :is(button, .btn, .button, .back-link):is(:enabled, :disabled, a):is(:hover, :focus-visible, :active),
html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper) :is(.file-input-label, .quote-attachment-label),
html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper):is(:hover, :active, :focus-within) :is(.file-input-label, .quote-attachment-label) {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--soft-base) 96%, white),
    color-mix(in srgb, var(--soft-base) 96%, black));
  color: var(--soft-text);
  text-shadow: none;
  filter: none;
  outline: none;
  transform: none;
  box-shadow: -4px -4px 9px var(--soft-light),
    4px 4px 9px var(--soft-shadow);
  transition: background 180ms ease, box-shadow 180ms ease;
}

html body :is(button, .btn, .button, .back-link):hover:not(:disabled):not([aria-disabled="true"]),
html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper):hover :is(.file-input-label, .quote-attachment-label) {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--soft-base) 90%, white),
    var(--soft-base));
  box-shadow: -5px -5px 11px var(--soft-light),
    5px 5px 11px var(--soft-shadow);
}

html body :is(button, .btn, .button, .back-link):focus-visible,
html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper) input[type="file"]:focus-visible + :is(.file-input-label, .quote-attachment-label) {
  outline: 2px solid #529fda;
  outline-offset: 3px;
}

html body :is(button, .btn, .button, .back-link):active:not(:disabled):not([aria-disabled="true"]),
html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper):active :is(.file-input-label, .quote-attachment-label) {
  background: var(--soft-base);
  box-shadow: inset 3px 3px 6px var(--soft-shadow),
    inset -3px -3px 6px var(--soft-light);
}

html body :is(button, .btn, .button, .back-link):is(:disabled, [aria-disabled="true"]) {
  opacity: 0.6;
  cursor: not-allowed;
}

html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper):is(:hover, :active, :focus-within) :is(.file-input-label, .quote-attachment-label) > span,
html body :is(.file-input-label, .quote-attachment-label) > span {
  color: inherit;
}

html body .floating-whatsapp {
  border: 1px solid transparent;
  background: linear-gradient(145deg, #2ed56c, #24cb62);
  box-shadow: -4px -4px 9px rgba(190, 255, 214, 0.06),
    4px 4px 9px rgba(5, 70, 30, 0.3);
  transition: background 180ms ease, box-shadow 180ms ease;
}

html body .floating-whatsapp:hover {
  background: linear-gradient(145deg, #3bd876, #25d366);
  filter: none;
  transform: none;
  box-shadow: -5px -5px 11px rgba(190, 255, 214, 0.06),
    5px 5px 11px rgba(5, 70, 30, 0.3);
}

html body .floating-whatsapp:focus-visible {
  outline: 2px solid #7ec4f2;
  outline-offset: 3px;
}

html body .floating-whatsapp:active {
  background: #25d366;
  filter: none;
  box-shadow: inset 3px 3px 6px rgba(5, 70, 30, 0.3),
    inset -3px -3px 6px rgba(190, 255, 214, 0.06);
}

html body :is(.btn, .button, button[type="submit"]):not(header *):is(:enabled, :disabled, a) {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.4;
}

html body :is(.request-card, .quote-field) :is(.file-input-label, .quote-attachment-label) {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.4;
}

html body .quote-field .quote-attachment-label,
html body .request-card .file-input-label {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html body .floating-whatsapp,
  html body :is(button, .btn, .button, .back-link),
  html body :is(.request-card, .quote-field) :is(.file-input-wrapper, .quote-attachment-wrapper) :is(.file-input-label, .quote-attachment-label) {
    transition: none;
  }
}
