/* =============================================================
   Trafford IT Solutions
   Hand-written stylesheet — no framework, no build step.

   Contents
   01. Design tokens & theming
   02. Reset & base
   03. Layout primitives
   04. Shared components
   05. Header & navigation
   06. Hero
   07. Warehouse management system
   08. Services
   09. About
   10. Pillars
   11. Call to action
   12. Contact & form
   13. Footer & back-to-top
   14. Motion
   ============================================================= */


/* -------------------------------------------------------------
   01. Design tokens & theming

   Light values live on :root. The dark palette is applied both by
   the system preference and by an explicit [data-theme="dark"], so
   the default is "follow the system" and a manual choice overrides it.
   ------------------------------------------------------------- */

:root {
  /* Brand */
  --accent:        #17b183;
  --accent-strong: #0f8f68;
  --accent-soft:   rgba(23, 177, 131, 0.12);
  --accent-ring:   rgba(23, 177, 131, 0.35);

  /* Surfaces */
  --bg:            #ffffff;
  --bg-alt:        #f4f7fa;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --surface-hover: #f1f5f9;

  /* Ink */
  --text:          #0b1220;
  --text-muted:    #55657d;
  --text-faint:    #7b8aa1;
  --text-invert:   #ffffff;

  /* Lines & depth */
  --border:        #e3e9f0;
  --border-strong: #cfd8e3;
  --shadow-sm:     0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md:     0 6px 20px -6px rgba(11, 18, 32, 0.12);
  --shadow-lg:     0 24px 60px -20px rgba(11, 18, 32, 0.20);

  /* Hero treatment */
  --hero-bg:       radial-gradient(120% 90% at 50% -10%, #eef4f2 0%, #ffffff 55%);
  --hero-grid:     rgba(11, 18, 32, 0.055);
  --glow-a:        rgba(23, 177, 131, 0.20);
  --glow-b:        rgba(56, 128, 255, 0.14);
  --scrim:         rgba(11, 18, 32, 0.45);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* Rhythm */
  --shell-max:  1180px;
  --shell-pad:  1.25rem;
  --section-y:  clamp(4rem, 9vw, 7.5rem);

  /* Shape */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  240ms;

  --header-h: 68px;

  color-scheme: light;
}

/* Dark palette — applied to the system default and the explicit choice.
   Kept in a shared custom-property block so the two stay in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --accent:        #2dc997;
    --accent-strong: #51d8ad;
    --accent-soft:   rgba(45, 201, 151, 0.14);
    --accent-ring:   rgba(45, 201, 151, 0.40);

    --bg:            #0b1220;
    --bg-alt:        #0e1626;
    --surface:       #121c2e;
    --surface-2:     #16223a;
    --surface-hover: #1b2942;

    --text:          #e7eefb;
    --text-muted:    #93a4bd;
    --text-faint:    #6f8199;
    --text-invert:   #06101d;

    --border:        rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:     0 8px 26px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg:     0 30px 70px -24px rgba(0, 0, 0, 0.75);

    --hero-bg:       radial-gradient(120% 90% at 50% -10%, #123047 0%, #0b1220 55%);
    --hero-grid:     rgba(255, 255, 255, 0.05);
    --glow-a:        rgba(45, 201, 151, 0.24);
    --glow-b:        rgba(56, 128, 255, 0.20);
    --scrim:         rgba(3, 8, 16, 0.68);

    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --accent:        #2dc997;
  --accent-strong: #51d8ad;
  --accent-soft:   rgba(45, 201, 151, 0.14);
  --accent-ring:   rgba(45, 201, 151, 0.40);

  --bg:            #0b1220;
  --bg-alt:        #0e1626;
  --surface:       #121c2e;
  --surface-2:     #16223a;
  --surface-hover: #1b2942;

  --text:          #e7eefb;
  --text-muted:    #93a4bd;
  --text-faint:    #6f8199;
  --text-invert:   #06101d;

  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 8px 26px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg:     0 30px 70px -24px rgba(0, 0, 0, 0.75);

  --hero-bg:       radial-gradient(120% 90% at 50% -10%, #123047 0%, #0b1220 55%);
  --hero-grid:     rgba(255, 255, 255, 0.05);
  --glow-a:        rgba(45, 201, 151, 0.24);
  --glow-b:        rgba(56, 128, 255, 0.20);
  --scrim:         rgba(3, 8, 16, 0.68);

  color-scheme: dark;
}


/* -------------------------------------------------------------
   02. Reset & base
   ------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Locks scrolling behind the mobile menu. */
body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover { color: var(--accent); }

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

ul { list-style: none; padding: 0; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--text-invert);
}

/* The sprite is a definitions-only SVG — never rendered. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.625rem 1rem;
  background: var(--accent);
  color: var(--text-invert);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus { transform: translateY(0); color: var(--text-invert); }


/* -------------------------------------------------------------
   03. Layout primitives
   ------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.section { padding-block: var(--section-y); }

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section__title {
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 2.85rem);
  margin-block: 0.75rem 0;
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}


/* -------------------------------------------------------------
   04. Shared components
   ------------------------------------------------------------- */

/* -- Eyebrow label -- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* -- Gradient headline accent -- */
.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-strong) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--text-invert);
  box-shadow: 0 8px 24px -10px var(--accent-ring);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--text-invert);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--accent-ring);
}

.btn--primary:hover .icon { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 0.875rem 1.625rem;
  font-size: 1rem;
}

.btn--block { width: 100%; }

.btn:active { transform: translateY(0); }

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* -- Compact icon button -- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.icon-btn .icon { width: 1.15rem; height: 1.15rem; }

/* -- Brand lockup -- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 6px 18px -8px var(--accent-ring);
}

.brand__mark-inner {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-invert);
  line-height: 1;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* -- Tick list -- */
.tick-list {
  display: grid;
  gap: 0.625rem;
  margin-block: 1.75rem;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--text-muted);
}

.tick-list .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25rem;
  color: var(--accent);
}


/* -------------------------------------------------------------
   05. Header & navigation
   ------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  /* Sits above .nav-scrim (110). The mobile nav panel is a child of the
     header, so the header's own stacking context — not the panel's
     z-index — is what decides whether the scrim covers it. */
  z-index: 130;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

/* Frosted bar, faded in once the page scrolls away from the hero.
   It lives on a pseudo-element rather than on .site-header itself:
   backdrop-filter would otherwise make the header a containing block
   for fixed-position descendants, which would trap the mobile nav
   panel inside the 68px header box. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.site-header.is-stuck::before { opacity: 1; }

/* Also solid while the mobile menu is open, so the bar reads as part
   of the panel rather than floating transparently over it. */
body.is-nav-open .site-header::before { opacity: 1; }

/* color-mix is well supported, but keep a solid fallback for old engines. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header::before { background: var(--bg); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* -- Theme toggle -- */
.theme-toggle .theme-toggle__moon { display: none; }

:root[data-theme='dark'] .theme-toggle__sun  { display: none; }
:root[data-theme='dark'] .theme-toggle__moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle__sun  { display: none; }
  :root:not([data-theme='light']) .theme-toggle__moon { display: block; }
}

/* -- Navigation: off-canvas panel on small screens -- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 84vw);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 320ms var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav__cta { margin-top: 0.75rem; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.nav-scrim.is-visible { opacity: 1; }

.nav-toggle__close { display: none; }

.nav-toggle[aria-expanded='true'] .nav-toggle__open  { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

/* -- Navigation: inline bar from the medium breakpoint up -- */
@media (min-width: 62rem) {
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.375rem;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
  }

  .nav__list { flex-direction: row; align-items: center; gap: 0.125rem; }

  .nav__link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    background: none;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }

  .nav__link:hover,
  .nav__link.is-active {
    background: none;
    color: var(--text);
  }

  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }

  .nav__cta { margin: 0 0 0 0.75rem; }

  .nav-toggle,
  .nav-scrim { display: none; }
}


/* -------------------------------------------------------------
   06. Hero
   ------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem)) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-bg);
}

/* Faint blueprint grid — the "tech" texture. */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hero-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(115% 85% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 25%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.9;
}

.hero__glow--one {
  width: min(38rem, 90vw);
  height: min(30rem, 60vw);
  top: -14%;
  left: -8%;
  background: var(--glow-a);
}

.hero__glow--two {
  width: min(32rem, 80vw);
  height: min(26rem, 55vw);
  top: 8%;
  right: -12%;
  background: var(--glow-b);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 54rem;
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);
  letter-spacing: -0.035em;
}

.hero__lead {
  margin-top: 1.375rem;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Pill linking down to the flagship product. */
.hero__promo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
  padding: 0.4375rem 0.9375rem 0.4375rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.hero__promo:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero__promo-tag {
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__promo-text { font-weight: 500; }

.hero__promo .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent-strong);
  transition: transform var(--dur) var(--ease);
}

.hero__promo:hover .icon { transform: translateX(3px); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.25rem 2rem;
  width: 100%;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stat__value {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}


/* -------------------------------------------------------------
   07. Warehouse management system

   The flagship product. Deliberately heavier than the service
   cards below it: everything sits inside one tinted panel so the
   section reads as a product surface rather than another list.
   ------------------------------------------------------------- */

.wms__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(75% 110% at 0% 0%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(50% 70% at 100% 0%, var(--glow-b) 0%, transparent 70%),
    var(--surface-2);
  box-shadow: var(--shadow-md);
}

.wms__intro { max-width: 54rem; }

.wms__title {
  font-size: clamp(1.95rem, 1.15rem + 3vw, 3rem);
  margin-block: 0.875rem 0;
}

.wms__lead {
  margin-top: 1.125rem;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--text-muted);
}

.wms__body {
  display: grid;
  gap: 1rem 2.5rem;
  margin-top: 1.75rem;
}

.wms__body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 52rem) {
  .wms__intro { max-width: none; }
  .wms__body { grid-template-columns: 1fr 1fr; }
}

.wms__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.wms__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wms__badge .icon {
  width: 0.9375rem;
  height: 0.9375rem;
  color: var(--accent);
}

/* -- Capability modules -- */
.wms__modules {
  display: grid;
  gap: 1.125rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 46rem) {
  .wms__modules { grid-template-columns: 1fr 1fr; }
}

.wms-module {
  padding: 1.5rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.wms-module:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.wms-module__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.125rem;
  margin-bottom: 1.125rem;
  border-bottom: 1px dashed var(--border);
}

.wms-module__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.wms-module__icon .icon { width: 1.3125rem; height: 1.3125rem; }

.wms-module__title { font-size: 1.0625rem; }

.wms-module__list > div + div { margin-top: 1.125rem; }

.wms-module__list dt {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.wms-module__list dd {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* -- Closing call to action -- */
.wms__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}

.wms__foot-text {
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 52rem) {
  .wms__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
}


/* -------------------------------------------------------------
   08. Services
   ------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.card__icon .icon { width: 1.375rem; height: 1.375rem; }

.card__title { font-size: 1.1875rem; }

.card__text {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card__list {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9375rem;
}

.card__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.card__list .icon {
  width: 0.9375rem;
  height: 0.9375rem;
  color: var(--accent);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.card__link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease);
}

.card__link:hover .icon { transform: translateX(4px); }


/* -------------------------------------------------------------
   09. About
   ------------------------------------------------------------- */

.about {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.about__media { position: relative; }

.about__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.about__badge {
  position: absolute;
  right: clamp(-0.5rem, -1vw, 0rem);
  bottom: -1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about__badge-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-strong);
}

.about__badge-value span { font-size: 1.5rem; }

.about__badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.3;
}

.about__body p {
  margin-top: 1rem;
  color: var(--text-muted);
}

@media (min-width: 56rem) {
  .about { grid-template-columns: 1fr 1fr; }
  .about__media { order: 2; }
  .about__body  { order: 1; }
}


/* -------------------------------------------------------------
   10. Pillars
   ------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
}

.pillar {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Accent rail that fills in on hover. */
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 320ms var(--ease);
}

.pillar:hover::before { transform: scaleY(1); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pillar__title { font-size: 1.0625rem; }

.pillar__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}


/* -------------------------------------------------------------
   11. Call to action
   ------------------------------------------------------------- */

.cta {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 140% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--surface-2);
}

.cta__title { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.125rem); }

.cta__text {
  margin-top: 0.625rem;
  max-width: 38rem;
  color: var(--text-muted);
}

@media (min-width: 48rem) {
  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
}


/* -------------------------------------------------------------
   12. Contact & form
   ------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.contact__intro p { margin-top: 1rem; color: var(--text-muted); }

.contact__details {
  display: grid;
  gap: 1.125rem;
  margin-top: 2rem;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (min-width: 56rem) {
  .contact { grid-template-columns: 0.85fr 1.15fr; }
}

/* -- Form -- */
.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  gap: 1.125rem;
  margin-bottom: 1.125rem;
}

@media (min-width: 34rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* Honeypot — hidden from people and assistive tech, present in the DOM. */
.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field { display: flex; flex-direction: column; }
.field + .field { margin-top: 1.125rem; }
.form__row .field + .field { margin-top: 0; }

.field__label {
  margin-bottom: 0.4375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field__label span[aria-hidden] { color: var(--accent-strong); }

.field__optional {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.field__input {
  width: 100%;
  /* 16px minimum stops iOS Safari zooming the viewport on focus. */
  font-size: 1rem;
  padding: 0.75rem 0.9375rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field__input::placeholder { color: var(--text-faint); }

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__textarea { resize: vertical; min-height: 8rem; }

.field__select {
  appearance: none;
  /* Chevron drawn as a data URI so it needs no extra request and
     recolours with the theme via the two rules below. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355657d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
  padding-right: 2.5rem;
}

:root[data-theme='dark'] .field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a4bd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .field__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a4bd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* -- Validation -- */
.field__error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #e5484d;
  min-height: 0;
}

.field.has-error .field__input {
  border-color: #e5484d;
}

.field.has-error .field__input:focus {
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18);
}

/* -- Submit states -- */
.btn__spinner { display: none; }

.form.is-sending .btn__icon { display: none; }
.form.is-sending .btn__spinner {
  display: block;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form__status.is-success {
  display: block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-ring);
}

.form__status.is-error {
  display: block;
  background: rgba(229, 72, 77, 0.10);
  color: #e5484d;
  border: 1px solid rgba(229, 72, 77, 0.35);
}

.form__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  text-align: center;
}


/* -------------------------------------------------------------
   13. Footer & back-to-top
   ------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 40rem) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 60rem) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; }
}

.site-footer__blurb {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* A second heading in the same column needs its own top gap. */
.site-footer__heading--spaced { margin-top: 1.75rem; }

.site-footer__links {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.125rem;
  font-size: 0.9375rem;
}

.site-footer__links a { color: var(--text-muted); }
.site-footer__links a:hover { color: var(--accent); }

/* The flagship product reads as a product, not another list item. */
.site-footer__flag {
  font-weight: 600;
  color: var(--accent-strong);
}

.site-footer__links--contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.site-footer__links--contact .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__meta { color: var(--text-faint); }

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-invert);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--accent-strong); }

@media (min-width: 48rem) {
  .to-top { right: 1.75rem; bottom: 1.75rem; }
}


/* -------------------------------------------------------------
   14. Motion

   Elements marked .reveal fade up as they scroll into view. The
   visible state is applied by JS; if JS never runs, the .no-js
   fallback in main.js keeps everything visible.
   ------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* Safety net: if scripting is unavailable, never hide content. */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .nav { position: static; transform: none; visibility: visible; }
