/* DEHRIS — in-store merchandising agency.
   Motif: the shelf edge (dark board + lime price channel with tags). */

:root {
  --ink: #16302A;
  --deep: #24463D;
  --lime: #ADD14C;
  --lime-dark: #5E7A12;   /* lime tuned for text on light backgrounds */
  --sage: #7E9C8C;
  --paper: #F1F4EE;
  --mist: #DCE4DA;
  --white: #FFFFFF;
  --sand: #E8D9A8;
  --muted: #4A5D55;

  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(56px, 8vw, 104px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}

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

a { color: inherit; text-decoration-color: var(--lime-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- shelf edge: the one recurring device ---------- */
.shelf-edge {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, var(--white) 40px 78px, transparent 78px 150px) 0 13px / 100% 10px no-repeat,
    linear-gradient(var(--deep) 0 10px, var(--lime) 10px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 12px 22px; border: 2px solid var(--lime); border-radius: 4px;
  background: var(--lime); color: var(--ink);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: #BCDC66; border-color: #BCDC66; }
.btn--quiet { background: transparent; border-color: currentColor; }
.btn--quiet:hover { background: rgba(173, 209, 76, .18); border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- masthead ---------- */
.masthead { background: var(--ink); color: var(--white); position: relative; z-index: 20; }
.masthead__bar { display: flex; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 18px; }
.brand { display: block; width: clamp(190px, 30vw, 330px); margin-right: auto; }
.langs { display: flex; gap: 4px; }
.langs a { padding: 6px 10px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--mist); border-radius: 3px; }
.langs a[aria-current] { background: var(--deep); color: var(--lime); }
.langs a:hover { color: var(--white); }
.menu-toggle { display: none; }

.nav { border-top: 1px solid var(--deep); }
.nav__list { list-style: none; display: flex; gap: 8px; margin: 0 auto; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a {
  display: block; padding: 16px 14px 14px; color: var(--white); text-decoration: none;
  font-weight: 500; border-bottom: 4px solid transparent;
}
.nav__item > a:hover { border-bottom-color: var(--sage); }
.nav__item > a[aria-current] { border-bottom-color: var(--lime); }
.sub-toggle {
  width: 28px; height: 28px; margin-left: -8px; border: 0; border-radius: 3px; background: transparent; color: var(--mist); cursor: pointer;
}
.sub-toggle::before { content: ""; display: block; margin: 0 auto; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 290px;
  background: var(--white); color: var(--ink); border-top: 4px solid var(--lime);
  box-shadow: 0 18px 40px rgba(22, 48, 42, .22);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub a { display: block; padding: 9px 18px; text-decoration: none; line-height: 1.35; }
.sub a:hover, .sub a[aria-current] { background: var(--paper); box-shadow: inset 4px 0 var(--lime); }
@media (hover: hover) and (min-width: 861px) {
  .has-sub:hover .sub { visibility: visible; opacity: 1; transform: none; }
}
.has-sub.is-open .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { background: var(--paper); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px);
  align-items: end; padding-top: clamp(40px, 6vw, 80px);
}
.hero__text { padding-bottom: clamp(24px, 5vw, 72px); }
.hero h1 { max-width: 13ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.6em; }
.hero__art { width: 100%; margin-bottom: -2px; }

/* ---------- content blocks ---------- */
.block { padding: var(--space) 0; }
.block--tint { background: var(--white); }
.block__head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.block__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Services as facings on a shelf */
.planogram {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  column-gap: 28px; row-gap: 56px;
}
.facing a { display: flex; flex-direction: column; height: 100%; text-decoration: none; padding-bottom: 22px; position: relative; }
.facing a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 26px;
  background:
    linear-gradient(var(--white), var(--white)) 18px 13px / 38px 10px no-repeat,
    linear-gradient(var(--deep) 0 10px, var(--lime) 10px);
}
.facing img { background: var(--mist); border-radius: 4px 4px 0 0; transition: transform .2s ease; }
.facing a:hover img { transform: translateY(-6px); }
.facing__name { font: 500 1.15rem/1.3 var(--display); margin: 18px 0 8px; }
.facing a:hover .facing__name { text-decoration: underline; text-decoration-color: var(--lime-dark); text-underline-offset: 4px; }
.facing__text { color: var(--muted); font-size: .98rem; }

/* About trio */
.about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.about__item img { border-radius: 4px; margin-bottom: 20px; background: var(--mist); }
.about__item p { color: var(--muted); }
.more { font-weight: 600; }

/* Partner logos, each on a white tile resting on a lime shelf strip */
.brands {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px;
}
.brands li {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: var(--white); border-bottom: 6px solid var(--lime);
}
.brands img { width: 132px; max-width: 100%; height: auto; }

/* ---------- inner page ---------- */
.page-head { background: var(--paper); }
.page-head__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: end;
  padding-top: clamp(32px, 5vw, 64px);
}
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); padding-bottom: clamp(16px, 3vw, 40px); max-width: 20ch; }
.page-head__art { width: 100%; margin-bottom: -2px; }
.crumb { margin: 0 0 10px; font-weight: 600; color: var(--lime-dark); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--space); }
.page-body--aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); align-items: start; }

.prose { max-width: 68ch; }
.prose > div + div { margin-top: 1em; }
.prose ul { padding: 0; margin: 0 0 1.2em; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; background: var(--lime); border-radius: 2px; }
.prose a { font-weight: 600; }
.prose strong { font-weight: 600; }

.section-nav { position: sticky; top: 24px; background: var(--white); padding: 24px 0 0; }
.section-nav h2 { font-size: 1rem; font-weight: 500; padding: 0 24px; margin-bottom: 12px; }
.section-nav ul { list-style: none; margin: 0; padding: 0 0 12px; }
.section-nav a { display: block; padding: 10px 24px; text-decoration: none; line-height: 1.35; }
.section-nav a:hover { background: var(--paper); }
.section-nav a[aria-current] { box-shadow: inset 5px 0 var(--lime); font-weight: 600; background: var(--paper); }
.section-nav::after { content: ""; display: block; height: 26px; background: linear-gradient(var(--deep) 0 10px, var(--lime) 10px); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact dl { margin: 0; }
.contact dt { font-weight: 600; color: var(--lime-dark); margin-top: 1.4em; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 4px 0 0; font-size: 1.15rem; }
.contact__form { background: var(--white); padding: clamp(24px, 4vw, 44px); }
.muted { color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 20px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form label span::first-letter { text-transform: uppercase; }
.form input, .form textarea {
  font: inherit; color: inherit; padding: 11px 13px; border: 2px solid var(--mist); border-radius: 4px; background: var(--paper); width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--deep); outline: none; background: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form p { margin: 0; }
.notice { padding: 14px 18px; margin: 16px 0 0; border-left: 5px solid; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }
.notice--ok { background: #EEF5DA; border-color: var(--lime-dark); }
.notice--err { background: #FBEAE5; border-color: #B23A1F; }

/* ---------- call to action band ---------- */
.talk { background: var(--deep); color: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.talk__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.talk h2 { margin-bottom: .3em; }
.talk p { margin: 0; color: var(--mist); max-width: 52ch; }
.talk .btn--quiet { color: var(--white); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--mist); padding: 48px 0 36px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.footer__logo { width: 220px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer address strong { color: var(--white); }
.footer a { color: var(--mist); }
.footer a:hover { color: var(--white); }
.footer__copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--deep); font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__item { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; }
  .about__item img { grid-row: span 3; margin: 0; }
  .page-body--aside { grid-template-columns: 1fr; }
  .section-nav { position: static; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--white); border: 2px solid var(--deep); border-radius: 4px; font: 600 .95rem var(--body); cursor: pointer;
  }
  .menu-toggle::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor 0 2px, transparent 2px 5px, currentColor 5px 7px, transparent 7px 10px, currentColor 10px); }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--deep); }
  .nav__item > a { flex: 1; padding: 14px 0; border-bottom: 0; }
  .nav__item > a[aria-current] { color: var(--lime); }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
  .sub { position: static; display: none; width: 100%; box-shadow: none; transform: none; border-top: 0; background: var(--deep); color: var(--white); visibility: visible; opacity: 1; margin-bottom: 10px; }
  .has-sub.is-open .sub { display: block; }
  .sub a:hover, .sub a[aria-current] { background: var(--ink); }
  .hero__grid, .page-head__grid { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .page-head h1 { padding-bottom: 0; }
  .page-head__art { max-width: 420px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .masthead__bar { flex-wrap: wrap; }
  .brand { width: 100%; }
  .menu-toggle { margin-left: auto; }
  .about__item { display: block; }
  .about__item img { margin-bottom: 16px; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
