/*
  aromarytechnologies.com — the company site's whole stylesheet.

  The product site (hiyava.aromarytechnologies.com) keeps style.css; nothing
  here reaches it.

  ORGANISATION
    1  type face and tokens
    2  base: reset, type scale, links, buttons, focus
    3  header and menus
    4  heroes
    5  sections and shared blocks
    6  home: what we do, solutions, steps, industries, who we are
    7  inner pages: SAP Business One, custom software, solutions, industries
    8  contact form
    9  footer
    10 responsive

  THE DIRECTION
  The pictures of real-looking software carry the page; everything around
  them stays quiet. One typeface, Instrument Sans, served from this site,
  with headlines set narrow and tight. The emerald palette is the owner's
  (#047857 for anything read, #10b981 only as a fill), deep emerald in place
  of black. Cards are used where content really is a set of separate things
  (products, services), not as the default container. No motion that a
  person did not start.

  NO STYLE ATTRIBUTES. The content-security policy is style-src 'self', so
  everything is a class here.
*/

/* ======================================================= 1 face, tokens */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #6b6560;
  --page: #f5f5f4;
  --surface: #ffffff;
  --alt: #ecebe8;
  --tint: #e9f2ee;
  --line: #e2e0dd;
  --line-2: #cfccc8;
  --field-line: #8f8882;

  --em-50: #ecfdf5;
  --em-100: #d1fae5;
  --em-300: #6ee7b7;
  --em-500: #10b981;
  --em-600: #059669;
  --em-700: #047857;
  --em-800: #065f46;
  --em-900: #064e3b;
  --em-950: #022c22;

  --on-dark: #ecfdf5;
  --on-dark-2: #b6d4c7;
  --on-dark-line: rgba(255, 255, 255, 0.14);

  --danger: #b91c1c;

  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 12px 32px -16px rgba(28, 25, 23, 0.18);
  --shadow-up: 0 2px 4px rgba(28, 25, 23, 0.06), 0 22px 44px -18px rgba(2, 44, 34, 0.3);
}

/* ================================================================ 2 base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-stretch: 86%;
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-stretch: 90%;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

.lead {
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

a {
  color: var(--em-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--em-800);
}

:focus-visible {
  outline: 3px solid var(--em-500);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--em-950);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap.narrow {
  max-width: 820px;
}

/* ---------------------------------------------------------- buttons */

/*
  One button, two weights. The filled button is the action a page wants; the
  outlined one is the other way on. On a dark band the filled button turns
  light, because white on the emerald fill would not be readable (2.5:1).
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--em-700);
  border-radius: var(--r-sm);
  background: var(--em-700);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.btn:hover {
  background: var(--em-800);
  border-color: var(--em-800);
  color: #fff;
}

.btn.secondary {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn.sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn.wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.dark .btn,
.home-hero .btn,
.btn.on-dark {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--em-950);
}

.dark .btn:hover,
.home-hero .btn:hover,
.btn.on-dark:hover {
  background: #fff;
  border-color: #fff;
  color: var(--em-950);
}

.dark .btn.secondary,
.home-hero .btn.secondary {
  background: transparent;
  border-color: rgba(236, 253, 245, 0.4);
  color: var(--on-dark);
}

.dark .btn.secondary:hover,
.home-hero .btn.secondary:hover {
  border-color: var(--on-dark);
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* A text link that leads somewhere: the destination's name, underlined on hover. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--em-700);
}

.more::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.more:hover {
  text-decoration: underline;
}

.dark .more {
  color: var(--em-300);
}

/* --------------------------------------------------------- pictures */

.pic {
  margin: 0;
}

.pic img {
  width: 100%;
}

.pic figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}

.dark .pic figcaption,
.home-hero .pic figcaption {
  color: var(--on-dark-2);
}

/* ------------------------------------------------------------ lists */

.ticks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--em-700);
}

.dark .ticks svg {
  color: var(--em-300);
}

/* ============================================================ 3 header */

.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.hd-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  margin-left: auto;
}

.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav > ul > li > a:not(.btn),
.dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav > ul > li > a:not(.btn):hover,
.dd-btn:hover,
.dd:focus-within > .dd-btn,
.nav a[aria-current='page']:not(.btn) {
  color: var(--ink);
  background: var(--alt);
}

.nav-cta {
  margin-left: 10px;
}

.chev {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* ---- the panels: open on hover and on focus, so no script is needed */

.dd {
  position: relative;
}

.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  width: 360px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-up);
  /* Shown and hidden at once: a menu must never depend on an animation
     finishing, and an instant panel is the faster one to use. */
  display: none;
}

/* The gap between the trigger and the panel must not close it on the way down. */
.dd-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.dd:hover > .dd-panel,
.dd:focus-within > .dd-panel,
.dd.open > .dd-panel {
  display: block;
}

.dd.shut > .dd-panel {
  display: none;
}

.dd-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dd-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}

.dd-panel a:hover,
.dd-panel a[aria-current='page'] {
  background: var(--tint);
}

.dd-panel strong {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
}

.dd-panel span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}

/* The solutions panel lists seven areas, each naming its products: two
   columns, centred under its trigger so it never runs off the right edge. */
.dd:nth-child(2) .dd-panel {
  width: 640px;
  left: 50%;
  margin-left: -320px;
}

.dd:nth-child(2) .dd-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dd-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 6px;
}

.dd-all a {
  font-weight: 600;
  color: var(--em-700);
}

/* ---- the phone menu: a <details>, so it opens and closes without script */

.menu {
  display: none;
  margin-left: auto;
}

.menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu svg {
  width: 20px;
  height: 20px;
}

.menu .icon-close,
.menu[open] .icon-open {
  display: none;
}

.menu[open] .icon-close {
  display: block;
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 8px 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-up);
}

.menu-group {
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
}

.menu-group p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-group a,
.menu-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.menu-link {
  border-bottom: 1px solid var(--line);
}

.menu-link.cta {
  justify-content: center;
  margin-top: 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--em-700);
  color: #fff;
  font-weight: 600;
}

/* ============================================================ 4 heroes */

.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.hero .lead {
  margin-top: 22px;
}

.crumb {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.crumb a {
  color: inherit;
}

/*
  THE HOME HERO, the one bold thing on the site: deep emerald, a big narrow
  headline, and the product picture running past the bottom of the band into
  the section below it.
*/
.home-hero {
  position: relative;
  padding: 88px 0 0;
  color: var(--on-dark);
  background:
    radial-gradient(70rem 40rem at 85% 10%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(170deg, var(--em-950) 0%, var(--em-900) 100%);
}

/*
  The headline runs across the top; below it, the words on the left and the
  picture on the right, the picture larger and running past the band.
*/
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr);
  grid-template-areas:
    'title title'
    'copy art';
  column-gap: 56px;
  row-gap: 36px;
  align-items: start;
}

.hero-title {
  grid-area: title;
  max-width: 17ch;
  font-size: clamp(2.7rem, 1.4rem + 4.4vw, 5.4rem);
}

.home-hero .hero-copy {
  grid-area: copy;
  padding-bottom: 80px;
}

.home-hero .lead {
  margin-top: 0;
  color: var(--on-dark-2);
}

.home-hero .hero-art {
  grid-area: art;
  margin-bottom: -150px;
  position: relative;
  z-index: 2;
}

.hero-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--on-dark-2);
}

.home-hero + .sec {
  padding-top: 214px;
}

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Inner pages name a thing rather than make a claim: a size down from the home page. */
.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem);
}

.page-hero.plain .lead {
  max-width: 68ch;
}

/* ================================================= 5 sections, shared */

.sec {
  padding: 104px 0;
}

.sec.alt {
  background: var(--alt);
}

.sec.dark {
  background: var(--em-950);
  color: var(--on-dark);
}

.sec.dark .lead {
  color: var(--on-dark-2);
}

.head {
  max-width: 780px;
  margin-bottom: 52px;
}

.head .lead {
  margin-top: 16px;
}

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.split .lead {
  margin-top: 18px;
}

.split.flip > :first-child {
  order: 2;
}

.note {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 3px solid var(--em-600);
  font-size: 15px;
  color: var(--ink-2);
  max-width: 70ch;
}

.after {
  margin-top: 36px;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 1.6em 0 0.5em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

/* --- the closing band */

.cta {
  background: var(--em-950);
  color: var(--on-dark);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta .lead {
  margin-top: 14px;
  color: var(--on-dark-2);
}

.cta .actions {
  margin-top: 0;
  flex: none;
}

.cta .btn {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--em-950);
}

.cta .btn.secondary {
  background: transparent;
  border-color: rgba(236, 253, 245, 0.4);
  color: var(--on-dark);
}

/* --- questions */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--em-700);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ============================================================= 6 home */

/* --- what we do: two equal halves */

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.offer {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.offer-img {
  display: block;
  padding: 28px 28px 0;
  background: var(--tint);
}

.offer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 32px 32px;
}

.offer-body h3 {
  font-size: 1.5rem;
  font-stretch: 92%;
  letter-spacing: -0.015em;
}

.offer-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.offer-body h3 a:hover {
  text-decoration: underline;
}

.offer-body > p {
  margin-top: 12px;
  color: var(--ink-2);
}

.offer-body .more {
  margin-top: auto;
  padding-top: 26px;
}

/* The add-ons named under SAP Business One: a row of small links. */
.also {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.also p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

.also ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.also a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.also a:hover {
  border-color: var(--em-600);
  color: var(--em-800);
}

.kinds {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kinds a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--page);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.kinds a:hover {
  border-color: var(--em-600);
}

.kind-img {
  border-radius: 8px;
  background: var(--tint);
  padding: 8px 8px 0;
}

/* --- the featured solution, and the catalogue */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
}

.feature:hover {
  color: var(--ink);
  border-color: var(--em-600);
}

.feature h3 {
  font-size: 1.75rem;
  font-stretch: 90%;
  letter-spacing: -0.02em;
}

.feature-body p:not(.tag) {
  margin-top: 12px;
  color: var(--ink-2);
}

.feature .more {
  margin-top: 22px;
}

.tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--em-700);
  margin-bottom: 10px;
}

.catalogue {
  border-top: 1px solid var(--line-2);
}

.cat-row {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-2);
}

.cat-name p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
}

.cat-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 36px;
}

.cat-items.wide {
  grid-template-columns: repeat(3, 1fr);
}

.cat-items a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}

.cat-items strong {
  display: block;
  font-weight: 600;
}

.cat-items a:hover strong {
  color: var(--em-700);
  text-decoration: underline;
}

.cat-items span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* --- how a project runs: a real sequence, so numbered */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.steps li {
  padding-top: 22px;
  border-top: 2px solid var(--on-dark-line);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--em-300);
  border-radius: 50%;
  color: var(--em-300);
  font-size: 14px;
  font-weight: 600;
}

.step-t {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em-300);
}

.steps h3 {
  margin-top: 6px;
}

.steps p:not(.step-t) {
  margin-top: 10px;
  color: var(--on-dark-2);
  font-size: 15.5px;
}

/* --- industries */

.industries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industries a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 2px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.industries a:hover {
  border-color: var(--em-600);
}

.industries .ind-icon {
  grid-row: span 2;
}

.industries strong {
  font-weight: 600;
}

.industries span:not(.ind-icon) {
  font-size: 15px;
  color: var(--ink-2);
}

.ind-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--em-50);
  color: var(--em-700);
}

.ind-icon svg {
  width: 22px;
  height: 22px;
}

.ind-icon.big {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.ind-icon.big svg {
  width: 28px;
  height: 28px;
}

/* --- who we are */

.who {
  align-items: start;
}

.who .more {
  margin-top: 24px;
}

.reasons {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 36px;
}

.reasons div {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.reasons dt {
  font-weight: 600;
  font-size: 1.05rem;
}

.reasons dd {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ====================================================== 7 inner pages */

/* --- SAP Business One */

.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.modules li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.modules strong {
  display: block;
  font-weight: 600;
}

.modules p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* One document becomes the next: a chain, top to bottom. */
.flows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow {
  padding: 26px 26px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.flow ol {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.flow li {
  position: relative;
  padding: 0 0 18px 30px;
  font-weight: 500;
}

.flow li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--em-600);
}

.flow li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 2px;
  width: 1.5px;
  background: var(--line-2);
}

.flow li:last-child::after {
  display: none;
}

.flow li:last-child::before {
  background: var(--em-600);
}

.services {
  border-top: 1px solid var(--line-2);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-2);
}

.service h3 {
  font-size: 1.35rem;
}

.service p {
  margin-top: 10px;
  color: var(--ink-2);
}

.service .ticks {
  margin-top: 0;
}

/* --- solutions */

.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.area-nav a {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: var(--page);
}

.area-nav a:hover {
  border-color: var(--em-600);
  color: var(--em-800);
}

.area .head {
  margin-bottom: 32px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.sol-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.sol-card:hover {
  border-color: var(--em-600);
  color: var(--ink);
}

.sol-thumb {
  padding: 18px 18px 0;
  background: var(--tint);
}

.sol-card-body {
  padding: 20px 22px 24px;
}

.sol-card strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
}

.sol-card-body span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.sol-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.sol-body h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

.sol-body h2 + .lead {
  margin-top: 14px;
}

.sol-body .lead + h2 {
  margin-top: 52px;
}

.facts {
  position: sticky;
  top: 96px;
  padding: 10px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facts dl {
  margin: 0 0 20px;
}

.facts dl div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.facts dd {
  margin: 4px 0 0;
  font-size: 15.5px;
}

.impact {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.impact li {
  padding-top: 20px;
  border-top: 2px solid var(--em-500);
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --- industries page */

.industry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.industry-head .lead {
  margin-top: 12px;
}

.industry h3 {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.pains,
.helps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pains li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.pains li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #d97706;
}

.helps li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.helps a {
  font-weight: 600;
}

.helps small {
  flex: none;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- about */

.what {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.what a {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.what a:hover {
  border-color: var(--em-600);
}

.what strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.what span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
}

/* ========================================================== 8 contact */

.contact-hero {
  padding-bottom: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact-intro .lead {
  margin-top: 20px;
}

.next {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  counter-reset: next;
  display: grid;
  gap: 18px;
}

.next li {
  counter-increment: next;
  position: relative;
  padding-left: 46px;
}

.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--em-50);
  color: var(--em-800);
  font-size: 14px;
  font-weight: 600;
}

.next strong {
  display: block;
}

.next span {
  display: block;
  color: var(--ink-2);
  font-size: 15.5px;
}

.direct {
  margin-top: 32px;
  color: var(--ink-2);
}

.enquiry {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--page);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.opt {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13.5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  padding: 12px 14px;
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--em-700);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.field-error {
  display: none;
  font-size: 14px;
  color: var(--danger);
}

.field.invalid .field-error {
  display: block;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

/* The honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
}

.consent {
  font-size: 14px;
  color: var(--ink-2);
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
}

.form-status[data-kind='pending'] {
  background: var(--alt);
  color: var(--ink-2);
}

.form-status[data-kind='ok'] {
  background: var(--em-50);
  color: var(--em-800);
}

.form-status[data-kind='error'] {
  background: #fef2f2;
  color: var(--danger);
}

/* ============================================================ 9 footer */

.ft {
  padding: 72px 0 40px;
  background: var(--alt);
  border-top: 1px solid var(--line);
}

.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 48px;
}

.ft-brand p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 34ch;
}

/* The last column holds the email addresses, so it gets the room they need. */
.ft-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr);
  gap: 28px;
}

.ft h2 {
  font-size: 14.5px;
  letter-spacing: 0;
  font-stretch: 100%;
  margin-bottom: 12px;
}

.ft ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ft a:not(.brand) {
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
  overflow-wrap: break-word;
}

.ft a:not(.brand):hover {
  color: var(--ink);
  text-decoration: underline;
}

.ft-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
  max-width: 110ch;
}

/* ======================================================== 10 responsive */

@media (max-width: 1120px) {
  .nav > ul > li > a:not(.btn),
  .dd-btn {
    padding: 8px 9px;
    font-size: 15px;
  }

  .ft-top {
    grid-template-columns: 1fr;
  }
}

/* The header menus give way to the phone menu. */
@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero-grid,
  .split,
  .offers,
  .feature,
  .sol-body,
  .contact-grid,
  .industry,
  .service {
    grid-template-columns: 1fr;
  }

  .split,
  .hero-grid {
    gap: 40px;
  }

  .split.flip > :first-child {
    order: 0;
  }

  .home-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'copy'
      'art';
  }

  .home-hero .hero-copy {
    padding-bottom: 0;
  }

  .home-hero .hero-art {
    margin-bottom: -90px;
  }

  .home-hero + .sec {
    padding-top: 150px;
  }

  .steps,
  .impact {
    grid-template-columns: 1fr 1fr;
  }

  .industries,
  .modules,
  .flows {
    grid-template-columns: 1fr 1fr;
  }

  .cat-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cat-items.wide {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    position: static;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .ft-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .industry,
  .service {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hd-in {
    min-height: 62px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .home-hero {
    padding-top: 52px;
  }

  .home-hero .hero-art {
    margin-bottom: -56px;
  }

  .home-hero + .sec {
    padding-top: 104px;
  }

  .sec {
    padding: 72px 0;
  }

  .head {
    margin-bottom: 36px;
  }

  .row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .offer-img {
    padding: 16px 16px 0;
  }

  .offer-body {
    padding: 22px 20px 24px;
  }

  .feature {
    padding: 22px;
    gap: 24px;
  }

  .cat-items,
  .cat-items.wide,
  .steps,
  .impact,
  .industries,
  .modules,
  .flows,
  .reasons,
  .what,
  .field-row {
    grid-template-columns: 1fr;
  }

  .sol-grid {
    grid-template-columns: 1fr;
  }

  /* On a phone the catalogue is a list of names; each page explains itself. */
  .cat-items span {
    display: none;
  }

  .cat-items a {
    padding: 6px 0;
  }

  .enquiry {
    padding: 22px 18px;
  }

  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .ft-cols {
    grid-template-columns: 1fr 1fr;
  }

  .brand span {
    font-size: 15.5px;
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* No sideways scroll, whatever a picture or a long address does. */
main {
  overflow-x: clip;
}
