@import url('https://fonts.googleapis.com/css2?family=Blinker:wght@600;700;900&display=swap');

/* JD Tech Rentals — brand palette (tech-corporate, minimalist) */
:root {
  --jd-green: #008567;
  --jd-green-hover: #006b54;
  --jd-green-soft: rgba(0, 133, 103, 0.14);
  --jd-green-muted: rgba(0, 133, 103, 0.08);
  --rich-black: #1a1a1a;
  --pure-white: #ffffff;
  --cool-grey: #f8f9f9;
  --slate-grey: #4a4a4a;

  --bg: var(--pure-white);
  --surface: var(--pure-white);
  --surface-elevated: var(--pure-white);
  --surface-muted: var(--cool-grey);
  --border: rgba(26, 26, 26, 0.12);
  --heading: var(--rich-black);
  --text: var(--slate-grey);
  --muted: #6f6f6f;
  --accent: var(--jd-green);
  --accent-soft: var(--jd-green-soft);
  --accent-hover: var(--jd-green-hover);
  --link: var(--jd-green);
  --radius: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

/* Executive / Power tier: Rich Black canvas, white & green accents */
body.theme-premium {
  --bg: var(--rich-black);
  --surface: #252525;
  --surface-elevated: #2e2e2e;
  --surface-muted: #222222;
  --border: rgba(255, 255, 255, 0.12);
  --heading: var(--pure-white);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.62);
  --accent: var(--jd-green);
  --accent-soft: rgba(0, 133, 103, 0.22);
  --link: #4dd4b0;
  --accent-hover: #00a67f;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-h, 56px);
}

main,
.site-footer {
  overflow-x: clip;
}

/* Region dropdown inside the header */
.region-dropdown {
  position: relative;
  margin-left: 1rem;
}

.region-selector-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--slate-grey);
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.region-selector-trigger:hover,
.region-selector-trigger:focus-visible {
  color: var(--heading);
  background: var(--surface-muted);
}

.region-selector-trigger:focus-visible {
  outline: 2px solid var(--jd-green);
  outline-offset: 2px;
}

body.theme-premium .region-selector-trigger {
  color: var(--muted);
}

body.theme-premium .region-selector-trigger:hover {
  color: var(--pure-white);
  background: var(--surface);
}

.region-selector-flag {
  width: 1.2rem;
  height: 0.8rem;
  object-fit: contain;
  flex-shrink: 0;
}

.region-selector-code {
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

.region-selector-panel {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  left: auto;
  min-width: 260px;
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.04),
    0 20px 48px rgba(26, 26, 26, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1),
    visibility 0s linear 0.28s,
    box-shadow 0.28s ease;
  will-change: opacity, transform;
  z-index: 50;
}

/* Invisible bridge so cursor can travel from trigger → panel without losing hover */
.region-selector-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.45rem;
}

body.theme-premium .region-selector-panel {
  background: #2a2a2a;
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.region-dropdown:hover .region-selector-panel,
.region-dropdown:focus-within .region-selector-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1),
    visibility 0s linear 0s,
    box-shadow 0.28s ease;
}

.region-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--rich-black);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  font-size: 0.875rem;
  position: relative;
}

body.theme-premium .region-dropdown-item {
  color: rgba(255, 255, 255, 0.92);
}

.region-dropdown-item:hover:not(.region-dropdown-item-disabled) {
  background: var(--jd-green-soft);
}

.region-dropdown-item-active {
  background: var(--jd-green-soft);
  color: var(--jd-green);
  font-weight: 600;
}

.region-dropdown-item-active::after {
  content: "✓";
  position: absolute;
  right: 0.65rem;
  font-weight: bold;
  color: var(--jd-green);
}

.region-dropdown-item-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 961px) {
  .region-dropdown-item:active {
    transform: scale(0.99);
  }
}

.region-dropdown-flag {
  width: 1.4rem;
  height: 0.9rem;
  object-fit: contain;
  flex-shrink: 0;
}

.region-dropdown-name {
  flex: 1;
  border-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .region-dropdown {
    margin-left: 0;
  }
  .region-selector-panel {
    min-width: auto;
    width: 100%;
  }
}

@media (min-width: 961px) {
  .region-dropdown:hover .region-selector-panel .region-dropdown-item,
  .region-dropdown:focus-within .region-selector-panel .region-dropdown-item {
    animation: nav-dropdown-link-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .region-selector-panel .region-dropdown-item:nth-child(1) { animation-delay: 0.03s; }
  .region-selector-panel .region-dropdown-item:nth-child(2) { animation-delay: 0.06s; }
  .region-selector-panel .region-dropdown-item:nth-child(3) { animation-delay: 0.09s; }
  .region-selector-panel .region-dropdown-item:nth-child(4) { animation-delay: 0.12s; }
  .region-selector-panel .region-dropdown-item:nth-child(5) { animation-delay: 0.15s; }
  .region-selector-panel .region-dropdown-item:nth-child(6) { animation-delay: 0.18s; }
}


h1,
h2,
h3,
h4 {
  color: var(--heading);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

/* Full-page glass veil when primary nav dropdown is open */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(248, 249, 249, 0.45);
}

body.theme-premium .nav-backdrop {
  background: rgba(26, 26, 26, 0.55);
}

body:has(.nav-main .nav-dropdown:hover) .nav-backdrop,
body:has(.nav-main .nav-dropdown:focus-within) .nav-backdrop,
body:has(.nav-main .nav-dropdown.is-open) .nav-backdrop,
body:has(.nav-main.is-open) .nav-backdrop,
body:has(.region-dropdown:hover) .nav-backdrop,
body:has(.region-dropdown:focus-within) .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Desktop: blur only — do not capture mouse (path from trigger → panel stays usable). */
body:has(.nav-main .nav-dropdown:hover) .nav-backdrop,
body:has(.nav-main .nav-dropdown:focus-within) .nav-backdrop,
body:has(.region-dropdown:hover) .nav-backdrop,
body:has(.region-dropdown:focus-within) .nav-backdrop {
  pointer-events: none;
}

/* Mobile: backdrop catches taps to dismiss. */
@media (max-width: 960px) {
  body:has(.nav-main .nav-dropdown.is-open) .nav-backdrop,
  body:has(.nav-main.is-open) .nav-backdrop {
    pointer-events: auto;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

body.theme-premium .site-header {
  background: rgba(26, 26, 26, 0.96);
}

@media (max-width: 960px) {
  body.theme-premium .nav-main {
    background: #1a1a1a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

body.theme-premium .site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.48rem 0;
  flex-wrap: nowrap;
}

.logo {
  flex-shrink: 0;
  font-family: 'Blinker', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--jd-green);
  text-decoration: none;
  transition: color 0.15s ease;
}

.logo:hover {
  text-decoration: none;
  color: var(--jd-green-hover);
}

.logo span {
  color: var(--heading);
  font-weight: 600;
}

body.theme-premium .logo span {
  color: var(--pure-white);
}

/* Do not use overflow:hidden/auto on this element — it clips position:absolute dropdown panels */
.nav-main {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease,
              width 0.28s ease;
  transform-origin: center;
}

/* X state when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* CTA lives outside nav-main so it stays visible on mobile */
.header-cta {
  flex-shrink: 0;
}

body.theme-premium .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-premium .nav-toggle-bar {
  background: var(--pure-white);
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .region-dropdown-name {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Mobile nav: absolute overlay — solid bg (no backdrop-filter = no compositing layer = no ghost space) */
  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav-main.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
  }

  .nav-main .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-panel {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 0.25rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease,
      visibility 0s linear 0.2s;
  }

  .nav-dropdown.is-open .nav-dropdown-panel {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transition:
      max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease,
      visibility 0s linear 0s;
  }
}

.nav-link {
  color: var(--slate-grey);
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

body.theme-premium .nav-link:not(.nav-link-cta) {
  color: var(--muted);
}

.nav-link:hover {
  color: var(--heading);
  background: var(--surface-muted);
  text-decoration: none;
}

body.theme-premium .nav-link:hover {
  color: var(--pure-white);
  background: var(--surface);
}

.nav-link-cta {
  background: var(--jd-green);
}

.nav-link.nav-link-cta {
  color: var(--pure-white);
}

.nav-link-cta:hover {
  background: var(--jd-green-hover);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--slate-grey);
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.nav-dropdown-trigger--link {
  color: var(--slate-grey);
}

/* Chevron: shows menu affordance + rotates when open (desktop hover / mobile accordion) */
.nav-dropdown-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.4em;
  height: 0.4em;
  margin-top: 0.05em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown.is-open .nav-dropdown-trigger::after {
  transform: rotate(225deg);
  opacity: 0.95;
}

body.theme-premium .nav-dropdown-trigger {
  color: var(--muted);
}

.nav-dropdown-trigger:hover {
  color: var(--heading);
  background: var(--surface-muted);
}

body.theme-premium .nav-dropdown-trigger:hover {
  color: var(--pure-white);
  background: var(--surface);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  min-width: 260px;
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.04),
    0 20px 48px rgba(26, 26, 26, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1),
    visibility 0s linear 0.28s,
    box-shadow 0.28s ease;
  will-change: opacity, transform;
  z-index: 50;
}

/* Rightmost dropdowns open left so they don't overflow the viewport */
@media (min-width: 961px) {
  .nav-dropdown:nth-last-of-type(-n+2) .nav-dropdown-panel {
    transform-origin: top right;
    left: auto;
    right: 0;
  }
}

/* Invisible bridge so cursor can move trigger → panel without losing hover */
.nav-dropdown-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.45rem;
}

body.theme-premium .nav-dropdown-panel {
  background: #2a2a2a;
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.34, 1.15, 0.64, 1),
    visibility 0s linear 0s,
    box-shadow 0.28s ease;
}

/* Staggered link reveal (desktop only — panel is static on mobile) */
@media (min-width: 961px) {
  @keyframes nav-dropdown-link-in {
    from {
      opacity: 0;
      transform: translateX(-6px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-dropdown:hover .nav-dropdown-panel a,
  .nav-dropdown:focus-within .nav-dropdown-panel a {
    animation: nav-dropdown-link-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .nav-dropdown-panel a:nth-child(1) {
    animation-delay: 0.03s;
  }
  .nav-dropdown-panel a:nth-child(2) {
    animation-delay: 0.06s;
  }
  .nav-dropdown-panel a:nth-child(3) {
    animation-delay: 0.09s;
  }
  .nav-dropdown-panel a:nth-child(4) {
    animation-delay: 0.12s;
  }
  .nav-dropdown-panel a:nth-child(5) {
    animation-delay: 0.15s;
  }
  .nav-dropdown-panel a:nth-child(6) {
    animation-delay: 0.18s;
  }
  .nav-dropdown-panel a:nth-child(7) {
    animation-delay: 0.21s;
  }
  .nav-dropdown-panel a:nth-child(8) {
    animation-delay: 0.24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-backdrop {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .nav-link,
  .nav-dropdown-trigger,
  .logo,
  .site-header {
    transition: none;
  }

  .nav-dropdown-trigger::after {
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .nav-dropdown-panel {
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    transform: translateY(4px) scale(1);
  }

  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown:focus-within .nav-dropdown-panel {
    transform: translateY(0) scale(1);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
  }

  .nav-dropdown:hover .nav-dropdown-panel a,
  .nav-dropdown:focus-within .nav-dropdown-panel a {
    animation: none;
  }

  .region-selector-panel {
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  }

  .region-dropdown:hover .region-selector-panel,
  .region-dropdown:focus-within .region-selector-panel {
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
  }

  .region-dropdown:hover .region-selector-panel .region-dropdown-item,
  .region-dropdown:focus-within .region-selector-panel .region-dropdown-item {
    animation: none;
  }
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--rich-black);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-panel a:focus-visible {
  outline: 2px solid var(--jd-green);
  outline-offset: 2px;
}

.nav-dropdown-trigger:focus-visible {
  outline: 2px solid var(--jd-green);
  outline-offset: 2px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--jd-green);
  outline-offset: 2px;
}

.nav-dropdown-trigger.is-active {
  color: var(--heading);
}

.nav-link.is-active:not(.nav-link-cta) {
  color: var(--heading);
}

body.theme-premium .nav-dropdown-trigger.is-active,
body.theme-premium .nav-link.is-active:not(.nav-link-cta) {
  color: var(--pure-white);
}

body.theme-premium .nav-dropdown-panel a {
  color: rgba(255, 255, 255, 0.92);
}

.nav-dropdown-panel a:hover {
  background: var(--jd-green-soft);
  text-decoration: none;
}

@media (min-width: 961px) {
  .nav-dropdown-panel a:active {
    transform: scale(0.99);
  }
}

body.theme-premium .nav-dropdown-panel a:hover {
  background: var(--jd-green-soft);
}

.nav-dropdown-panel small {
  display: block;
  color: var(--slate-grey);
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

body.theme-premium .nav-dropdown-panel small {
  color: var(--muted);
}

/* Hero & sections */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    var(--jd-green-muted) 0%,
    var(--pure-white) 55%
  );
}

body.theme-premium .hero {
  background: linear-gradient(
    160deg,
    rgba(0, 133, 103, 0.18) 0%,
    var(--rich-black) 45%,
    var(--rich-black) 100%
  );
  border-bottom-color: var(--border);
}

.hero h1 {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 20ch;
  color: var(--heading);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

body.theme-premium .hero-lead {
  color: var(--muted);
}

.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.section.section-muted {
  background: var(--cool-grey);
}

body.theme-premium .section.section-muted {
  background: var(--surface-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(0, 133, 103, 0.35);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

body.theme-premium .card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

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

.card a.stretched:hover h3 {
  color: var(--jd-green);
}

/* Specs table — on premium pages, light “card” for readability */
.specs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

body.theme-premium .specs-table-wrap {
  background: var(--pure-white);
  border-color: rgba(26, 26, 26, 0.1);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

body.theme-premium .specs-table th,
body.theme-premium .specs-table td {
  border-bottom-color: rgba(26, 26, 26, 0.08);
  color: var(--rich-black);
}

.specs-table th {
  background: var(--cool-grey);
  color: var(--slate-grey);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.theme-premium .specs-table th {
  background: var(--cool-grey);
  color: var(--slate-grey);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

body.theme-premium .specs-table .btn-primary {
  /* keep JD green on white table */
  background: var(--jd-green);
  color: var(--pure-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--jd-green);
  color: var(--pure-white);
}

.btn-primary:hover {
  background: var(--jd-green-hover);
  text-decoration: none;
  filter: none;
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
}

body.theme-premium .btn-ghost {
  color: var(--pure-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: var(--surface-muted);
  text-decoration: none;
}

body.theme-premium .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Pain-point header (industry) */
.pain-header {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--heading);
}

.pain-sub {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 2rem;
}

/* Swap timeline */
.swap-map {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.swap-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.swap-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--jd-green-soft);
  color: var(--jd-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

body.theme-premium .swap-step-num {
  color: var(--jd-green);
  background: var(--jd-green-soft);
}

.swap-step h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--heading);
}

.swap-step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

/* Fair-play badge — JD Green signal */
.fair-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--jd-green-soft);
  border: 1px solid rgba(0, 133, 103, 0.45);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jd-green);
  margin: 1rem 0;
}

body.theme-premium .fair-badge {
  color: #7ee8c8;
  border-color: rgba(0, 133, 103, 0.55);
  background: rgba(0, 133, 103, 0.2);
}

/* Valuation widget — Cool Grey band; form card can sit on white inside .section-muted */
.valuation-form {
  max-width: 420px;
  padding: 1.5rem;
  background: var(--cool-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section-muted .valuation-form {
  background: var(--pure-white);
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}

body.theme-premium .valuation-form {
  background: var(--surface);
  border-color: var(--border);
}

.valuation-form label {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-grey);
  margin-bottom: 0.35rem;
}

body.theme-premium .valuation-form label {
  color: var(--muted);
}

.valuation-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--pure-white);
  color: var(--rich-black);
  font: inherit;
}

body.theme-premium .valuation-form input {
  background: var(--rich-black);
  color: var(--pure-white);
  border-color: var(--border);
}

.valuation-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Lab placeholder */
.lab-placeholder {
  aspect-ratio: 16/9;
  max-height: 320px;
  background: var(--cool-grey);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-grey);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

body.theme-premium .lab-placeholder {
  background: var(--surface);
  color: var(--muted);
}

/* Pricing table */
.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1rem 0 2rem;
  background: var(--surface-elevated);
}

/* Quote page */
.nav-quote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--jd-green);
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1;
}

.nav-quote-badge[hidden] { display: none; }

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .quote-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.quote-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quote-item-count {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.quote-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.quote-item:first-child { border-top: 1px solid var(--border); }

.quote-item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.quote-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.quote-item-model {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
}

.quote-item-spec {
  font-size: 0.75rem;
  color: var(--muted);
}

.quote-item-static-spec {
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-item-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.quote-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--cool-grey);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
  padding: 0;
}

.qty-btn:hover { background: var(--border); }

.qty-remove {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.qty-remove:hover { background: #fee2e2; color: #dc2626; }

.qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.quote-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.quote-empty-state p { color: var(--muted); margin-bottom: 1rem; font-size: 0.9rem; }

/* What happens next steps */
.quote-next-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cool-grey);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
}

.quote-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.quote-step .quote-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--jd-green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quote-step strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.2;
}

.quote-step span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.quote-step-connector {
  color: var(--border);
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

body.theme-premium .quote-next-steps { background: var(--surface); }
body.theme-premium .quote-step strong { color: var(--heading); }

/* Trust strip */
.quote-trust-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* WhatsApp link below submit */
.quote-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.quote-whatsapp-link:hover { color: #25d366; }

/* Field hint text */
.form-field-hint {
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 0.18rem;
  line-height: 1.4;
}

/* Quote form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.quote-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-grey);
}

body.theme-premium .quote-form label { color: var(--muted); }

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--pure-white);
  color: var(--rich-black);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--jd-green);
}

body.theme-premium .quote-form input,
body.theme-premium .quote-form select,
body.theme-premium .quote-form textarea {
  background: var(--surface);
  color: var(--pure-white);
  border-color: var(--border);
}

.quote-form textarea { min-height: 90px; resize: vertical; }

.quote-submit-btn { width: 100%; margin-top: 0.25rem; }

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

.quote-success {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.quote-success h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.quote-success p  { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Animated checkmark */
.quote-success-icon { display: flex; justify-content: center; margin-bottom: 1.25rem; }

.check-svg { width: 64px; height: 64px; }

.check-circle {
  stroke: var(--jd-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: check-draw-circle 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.check-tick {
  stroke: var(--jd-green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-draw-tick 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.45s forwards;
}

@keyframes check-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes check-draw-tick   { to { stroke-dashoffset: 0; } }

/* Submission summary pill */
.quote-success-summary {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.quote-success-summary:empty { display: none; }

/* "Added!" button feedback */
.btn.is-added { opacity: 0.8; cursor: default; }

/* Config selects (quote page) */
.config-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.config-select-label {
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-grey);
  opacity: 0.7;
}

.config-select {
  width: 100%;
  padding: 0.35rem 1.4rem 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--cool-grey);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 10px 6px;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.config-select:focus {
  outline: none;
  border-color: var(--jd-green);
}

body.theme-premium .config-select {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.product-card:hover {
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.1);
  transform: translateY(-2px);
}

.product-card-img {
  background: var(--cool-grey);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card-badge-img {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: auto;
  border-radius: 4px;
  opacity: 0.9;
}

.product-card-img img:not(.product-card-badge-img) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-card-img-icon {
  width: 72px;
  height: auto;
  color: var(--slate-grey);
  opacity: 0.3;
}

.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-badges {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.product-badge-variant {
  background: var(--jd-green-soft);
  color: var(--jd-green);
}

.product-badge-gen {
  background: rgba(26, 26, 26, 0.06);
  color: var(--slate-grey);
}

body.theme-premium .product-badge-variant {
  background: rgba(0, 133, 103, 0.22);
  color: #4dd4b0;
}

body.theme-premium .product-badge-gen {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin: 0 0 0.15rem;
}

.product-card-cpu {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.product-card-config {
  margin-bottom: 0.7rem;
}

.product-card-config--upgrade {
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
  margin-top: 0.05rem;
}

.product-config-label {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-grey);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.product-config-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

body.theme-premium .product-config-label {
  color: var(--muted);
}

.product-card-specs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card-specs li {
  font-size: 0.845rem;
  color: var(--text);
  padding: 0.18rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card-config--upgrade .product-card-specs li {
  font-size: 0.8rem;
  color: var(--muted);
}

.product-spec-max {
  font-size: 0.72rem;
  color: var(--slate-grey);
  opacity: 0.65;
  white-space: nowrap;
}

.product-card-cta {
  display: block;
  text-align: center;
  margin-top: auto;
}

body.theme-premium .product-card {
  background: var(--surface);
  border-color: var(--border);
}

body.theme-premium .product-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

body.theme-premium .product-card-img {
  background: var(--surface-muted);
}

body.theme-premium .product-card-img-icon {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

body.theme-premium .product-card-name {
  color: var(--heading);
}

body.theme-premium .product-card-cpu {
  color: var(--muted);
}

body.theme-premium .product-card-specs li {
  color: var(--text);
  border-bottom-color: var(--border);
}

body.theme-premium .product-card-upgrade {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: none;
  }
}

/* Location pages */
.location-hero { padding: 3rem 0 2.5rem; }

.location-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 780px) {
  .location-hero-inner { grid-template-columns: 1fr; }
  .location-hero-img { order: -1; }
}

.location-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jd-green);
  margin: 0 0 0.5rem;
}

.location-hero .hero-lead { margin-bottom: 1.25rem; }

.location-deployment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--jd-green-soft);
  color: var(--jd-green);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.location-hero-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.location-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 780px) {
  .location-content { grid-template-columns: 1fr; }
}

.location-districts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.location-districts-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  background: var(--cool-grey);
  border-radius: 8px;
}

.location-districts-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--jd-green);
  border-radius: 50%;
}

.location-cta-card {
  background: var(--cool-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.location-cta-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.location-cta-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.25rem; }
.location-cta-card .btn { width: 100%; text-align: center; display: block; }

.location-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.location-whatsapp-link:hover { color: #25d366; }

body.theme-premium .location-districts-list li,
body.theme-premium .location-cta-card { background: var(--surface); }

/* Footer */
.site-footer {
  margin-top: 6rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #f2f3f3;
}

body.theme-premium .site-footer {
  background: #141414;
  border-top-color: var(--border);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rich-black);
}

body.theme-premium .footer-brand-name {
  color: var(--heading);
}

.footer-brand-tagline {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem 1rem;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-col h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-grey);
}

body.theme-premium .footer-col h4 {
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.2rem;
}

.footer-col address {
  font-style: normal;
}

.footer-col a {
  color: var(--rich-black);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.theme-premium .footer-col a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-col a:hover {
  color: var(--jd-green);
}

body.theme-premium .footer-col a:hover {
  color: #7ee8c8;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--slate-grey);
}

body.theme-premium .footer-bottom {
  color: var(--muted);
  border-top-color: var(--border);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-social-link,
.footer-social-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--rich-black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-social-link svg {
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: var(--jd-green);
}

body.theme-premium .footer-social-link {
  color: rgba(255, 255, 255, 0.88);
}

body.theme-premium .footer-social-link:hover {
  color: #7ee8c8;
}

@media (prefers-reduced-motion: reduce) {
  .footer-col a,
  .footer-social-link {
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 1.75rem;
  }

  .hero h1 {
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
}

/* Toast notification */
.jd-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--rich-black);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 600;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.jd-toast.jd-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Sticky CTA — always JD Green */
.sticky-cta {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.18);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sticky-cta.sticky-hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

body.theme-premium .sticky-cta {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
  .sticky-cta {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }

  .sticky-cta .btn {
    width: 100%;
  }
}

/* FAQ Accordion */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-section {
  margin-bottom: 2.5rem;
}

.faq-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--heading);
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

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

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  opacity: 0.9;
}

.faq-item summary:hover {
  color: var(--jd-green);
}

@keyframes faq-body-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-item[open] .faq-body {
  animation: faq-body-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.faq-body {
  padding: 0 1.5rem 1.25rem 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.faq-body p {
  margin: 0 0 0.65rem;
}

.location-faq-more {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Nationwide deployment page */
.nd-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.nd-city {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--link);
}
.nd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.nd-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.nd-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--link);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.nd-step p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.nd-use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.nd-use-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.nd-use-case strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.nd-use-case p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
@media (max-width: 700px) {
  .nd-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .nd-use-cases { grid-template-columns: 1fr; }
}

/* Asset lifecycle pages (buy-back, device-recovery) */
.lc-steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.lc-checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 2rem; }
.lc-check { display: flex; gap: 0.6rem; font-size: 0.9rem; line-height: 1.55; }
.lc-check::before { content: "✓"; color: var(--link); font-weight: 700; flex-shrink: 0; margin-top: 0.06rem; }
.dr-coverage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 0.75rem; }
.dr-col { border-radius: 10px; padding: 1.25rem 1.5rem; border: 1px solid var(--border); }
.dr-col-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.dr-col-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.dr-col-list li { font-size: 0.875rem; color: var(--muted); padding-left: 1.4rem; position: relative; line-height: 1.5; }
.dr-col-list li::before { position: absolute; left: 0; font-weight: 700; }
.dr-col.free { background: var(--accent-soft); }
.dr-col.free .dr-col-title { color: var(--link); }
.dr-col.free li::before { content: "✓"; color: var(--link); }
.dr-col.charged { background: var(--surface); }
.dr-col.charged .dr-col-title { color: var(--heading); }
.dr-col.charged li::before { content: "+"; color: var(--muted); }
.dr-col.cons { background: var(--surface); }
.dr-col.cons .dr-col-title { color: var(--muted); }
.dr-col.cons li::before { content: "\2715"; color: #c53030; }
@media (max-width: 700px) { .lc-steps-4 { grid-template-columns: repeat(2, 1fr); } .lc-checklist { grid-template-columns: 1fr; } .dr-coverage { grid-template-columns: 1fr; } }

/* Valuation device table — inputs/selects inherit .quote-form styles, only table layout is new */
.vw-col-heads { display: grid; grid-template-columns: 108px 1fr 148px 78px 118px 108px 58px 28px; gap: 0.5rem; padding: 0.25rem 0 0.45rem; border-bottom: 2px solid var(--border); margin-bottom: 0.15rem; }
.vw-col-heads span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.vw-dev-row { display: grid; grid-template-columns: 108px 1fr 148px 78px 118px 108px 58px 28px; gap: 0.5rem; align-items: center; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.vw-dev-row select, .vw-dev-row input[type="text"], .vw-dev-row input[type="number"] { padding: 0.38rem 0.45rem; font-size: 0.82rem; }
.vw-remove-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0; border-radius: 4px; line-height: 1; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.vw-remove-btn:hover { color: #c53030; background: #fff5f5; }
.vw-add-row-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1px dashed var(--border); color: var(--link); font-size: 0.85rem; font-weight: 500; padding: 0.45rem 1rem; border-radius: 6px; cursor: pointer; margin: 0.65rem 0 1.75rem; }
.vw-add-row-btn:hover { background: var(--accent-soft); border-color: var(--link); }
@media (max-width: 860px) {
  .vw-col-heads { display: none; }
  .vw-dev-row { grid-template-columns: 1fr 1fr; }
  .vw-dev-row > *:nth-child(7) { grid-column: 1; }
  .vw-dev-row > *:nth-child(8) { grid-column: 2; justify-self: end; align-self: center; }
}

/* Service cards (homepage "services at a glance") */
.card-service {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-service-icon {
  width: 28px;
  height: 28px;
  color: var(--jd-green);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.card-service-icon svg {
  width: 100%;
  height: 100%;
}

.card-service .card-service-stat {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
}

.card-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jd-green);
}

.card-service-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-service:hover .card-service-arrow {
  transform: translateX(3px);
}

/* Homepage city links */
.home-city-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.home-city-links li a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.home-city-links li a:hover {
  border-color: var(--jd-green);
  color: var(--jd-green);
}

.faq-body ul {
  margin: 0.4rem 0 0.65rem 1.2rem;
  padding: 0;
}

.faq-body li {
  margin-bottom: 0.2rem;
}

.faq-body strong {
  color: var(--heading);
  font-weight: 600;
}

body.theme-premium .faq-item summary {
  color: var(--pure-white);
}

body.theme-premium .faq-item {
  border-bottom-color: var(--border);
}

body.theme-premium .faq-section-title {
  border-bottom-color: var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-body {
    animation: none;
  }
  .faq-item summary::after {
    transition: none;
  }
}

/* Prose */
.prose {
  max-width: 65ch;
}

.prose p {
  color: var(--text);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.breadcrumb a {
  color: var(--slate-grey);
}

body.theme-premium .breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--jd-green);
}

body.theme-premium .breadcrumb a:hover {
  color: #7ee8c8;
}

.breadcrumb span {
  color: var(--heading);
}

body.theme-premium .breadcrumb span {
  color: rgba(255, 255, 255, 0.85);
}
