/* Shared bright automotive visual layer: warm AW gold, workshop blue and fine vehicle line art. */
:root {
  color-scheme: light;
  --aw-gold: #c99a2e;
  --aw-gold-soft: #f3e6c7;
  --aw-blue: #35677f;
  --aw-blue-soft: #eaf3f6;
  --aw-ink: #1f2933;
  --aw-paper: #fbfcfc;
}

body {
  background-color: var(--aw-paper) !important;
  background-image:
    radial-gradient(ellipse at 4% 0%, rgba(201, 154, 46, 0.09), transparent 34rem),
    radial-gradient(ellipse at 96% 12%, rgba(53, 103, 127, 0.07), transparent 38rem),
    linear-gradient(180deg, #fbfcfc 0%, #f5f8f8 52%, #fffdf8 100%) !important;
  color: var(--aw-ink);
}

/* Alternating section surfaces carry subtle technical line art, with content above it. */
main > section.bg-dark-bg {
  background-color: #f2f7f8 !important;
  background-image:
    url("./assets/automotive-blueprint.svg"),
    radial-gradient(ellipse at 8% 0%, rgba(201, 154, 46, 0.09), transparent 36rem),
    linear-gradient(135deg, rgba(53, 103, 127, 0.035), transparent 58%);
  background-repeat: no-repeat;
  background-position: right 4% bottom 1.5rem, left top, center;
  background-size: min(42vw, 540px) auto, 100% 100%, 100% 100%;
}

main > section.bg-dark-card {
  background-color: #fff !important;
  background-image: radial-gradient(ellipse at 100% 0%, rgba(201, 154, 46, 0.045), transparent 34rem);
}

@media (max-width: 640px) {
  main > section.bg-dark-bg {
    background-position: right -18vw bottom 1rem, left top, center;
    background-size: 76vw auto, 100% 100%, 100% 100%;
  }
}

/* Keep the familiar light-gold navigation while adding a clean glass edge. */
header.sticky {
  background: rgba(243, 230, 199, 0.96) !important;
  border-color: rgba(169, 120, 19, 0.25) !important;
  box-shadow: 0 4px 22px rgba(31, 41, 51, 0.07);
}

header.sticky nav a,
header.sticky nav button,
header.sticky .navbar-text {
  color: #17232b;
}

header.sticky #mobile-toggle {
  color: #17232b !important;
}

header.sticky nav > a:not([href^="tel:"]):not([href^="https://awmotors.gi4.co.uk"]),
header.sticky nav > div > button,
header.sticky #mobile-menu nav > a:not([href^="tel:"]) {
  transition: color 180ms ease, background-color 180ms ease;
}

header.sticky nav > a:not([href^="tel:"]):not([href^="https://awmotors.gi4.co.uk"]):hover,
header.sticky nav > a:not([href^="tel:"]):not([href^="https://awmotors.gi4.co.uk"]):focus-visible,
header.sticky nav > div > button:hover,
header.sticky nav > div > button:focus-visible,
header.sticky #mobile-menu nav > a:not([href^="tel:"]):hover,
header.sticky #mobile-menu nav > a:not([href^="tel:"]):focus-visible,
header.sticky #mobile-services-toggle:hover,
header.sticky #mobile-services-toggle:focus-visible {
  color: #8c6410 !important;
}

header.sticky nav > a[href^="https://awmotors.gi4.co.uk"] {
  border: 1px solid rgba(23, 35, 43, 0.42);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  color: #17232b;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

header.sticky nav > a[href^="https://awmotors.gi4.co.uk"]:hover,
header.sticky nav > a[href^="https://awmotors.gi4.co.uk"]:focus-visible {
  background-color: rgba(255, 255, 255, 0.55);
  border-color: #8c6410;
  color: #17232b;
}

header.sticky nav > a[href^="tel:"],
header.sticky #mobile-menu nav > a[href^="tel:"] {
  border-radius: 9999px;
  background-color: #ffffff;
  color: #17232b;
  box-shadow: 0 4px 12px rgba(31, 41, 51, 0.08);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

header.sticky nav > a[href^="tel:"]:hover,
header.sticky #mobile-menu nav > a[href^="tel:"]:hover {
  background-color: #17232b;
  color: #ffffff !important;
  transform: translateY(-1px);
}

header.sticky #mobile-menu {
  margin-top: 0;
  border-color: rgba(169, 120, 19, 0.2) !important;
  background: rgba(243, 230, 199, 0.98);
}

header.sticky #mobile-menu nav {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

header.sticky #mobile-services-menu {
  border-color: rgba(169, 120, 19, 0.22);
  background-color: rgba(255, 255, 255, 0.72);
}

/* Compact service rows inside the sidebar mega menu. */
#mega-menu-panel .mega-service {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem;
}
#mega-menu-panel .mega-icon {
  margin-bottom: 0;
  padding: 0.25rem;
}

/* Sidebar categories on the left, the hovered category's services on the right. */
#mega-menu-panel .svc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2933;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
#mega-menu-panel .svc-cat:hover,
#mega-menu-panel .svc-cat:focus-visible,
#mega-menu-panel .svc-cat.is-active {
  background-color: rgba(201, 154, 46, 0.12);
  color: #8c6410;
}
#mega-menu-panel .svc-cat:focus-visible {
  outline: 2px solid #c99a2e;
  outline-offset: 1px;
}
#mega-menu-panel .svc-panel {
  display: none;
}
#mega-menu-panel .svc-panel.is-active {
  display: block;
}

/* The grouped services list outgrew the old 600px cap, so the open menu scrolls instead of clipping. */
#mobile-menu.open {
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
}

/* Soft hover colour keeps cards bright and protects text contrast. */
main .hover-lift:hover {
  background-color: #eaf3f6 !important;
  border-color: rgba(53, 103, 127, 0.25);
  box-shadow: 0 16px 34px rgba(53, 103, 127, 0.12);
}

main .hover-lift:hover h3,
main .hover-lift:hover p,
main .hover-lift:hover a,
main .hover-lift:hover i,
main .hover-lift:hover svg path {
  color: var(--aw-ink) !important;
  fill: currentColor !important;
}

main .hover-lift:hover .text-dark-accent,
main .hover-lift:hover i.text-dark-accent {
  color: #a97813 !important;
}

footer {
  background-image: linear-gradient(135deg, rgba(53, 103, 127, 0.035), transparent 55%);
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
