/* ---- fonts (self-hosted, latin) ---- */
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat.woff2") format("woff2");
}

/*:root {
    --bg: #EDF3EA;
    --ink: #26392F;*/ /* #152a21; */
    /*--ink-soft: rgba(23, 34, 64, 0.55);
    --gold: #D5A029;
    --green: #26392f;
    --cream: #EDF3EA;
    --rule: rgba(23, 34, 64, 0.14);
    --maxw: 100dvw;
    --bp: 820px;*/ /* keep in sync with the three @media (max-width: 820px) below — var() is invalid in media queries */
    /*--section-y: clamp(3rem, 8vw, 7rem);
    --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}*/

:root {
    --bg: #EDF3EA;
    --ink: #26392F; /* #152a21; */
    --ink-soft: #71857A;
    --gold: #D5A029;
    --green: #3F5549;
    --cream: #B8C5BD;
    --rule: rgba(23, 34, 64, 0.14);
    --maxw: 100dvw;
    --bp: 820px; /* keep in sync with the three @media (max-width: 820px) below — var() is invalid in media queries */
    --section-y: clamp(3rem, 8vw, 7rem);
    --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 2.5rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

/* app shell: fixed header + footer, only .content scrolls */
.site { display: flex; flex-direction: column; height: 100dvh; overflow-x: clip; }
.site-nav { flex-shrink: 0; }
.content { padding: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.site-footer { flex-shrink: 0; }

.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.8rem; color: var(--gold); margin: 0 0 0.6em; }

/* full company name above the home hero tagline */
.brandline { color: #fff; font-weight: 700; font-size: 3.5rem; letter-spacing: 0.02em; margin: 0 0 0.5em; }
.brandline__it { color: var(--gold); }

/* ---- header ---- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 0;
  padding-inline: max(clamp(1.25rem, 5vw, 4rem), calc((100% - var(--maxw)) / 2));
  background: var(--ink);
}
.brand { display: inline-flex; }
.brand-logo {
    height: 35px;
    width: auto;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap; }
.nav-links a { text-transform: uppercase; font-weight: 700; font-size: 0.9rem; color: #fff; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-decoration: none; }
/* ---- language menu ---- */
.lang-menu { position: relative; display: inline-flex; }
.lang-menu__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0.4rem 0.2rem;
  color: #fff; font: inherit; cursor: pointer;
}
.i-globe { width: 22px; height: 22px; display: block; flex: none; }

.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 60;
  margin: 0; padding: 0.3rem; list-style: none; min-width: 11rem;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
}
.lang-menu.is-open > .lang-menu__list,
.lang-menu:not(.has-js):focus-within > .lang-menu__list { display: block; }
.lang-menu__list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.7rem; border-radius: 5px;
  color: #fff; font-size: 0.95rem; text-transform: none; font-weight: 500;
}
.lang-menu__list a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.lang-menu__list a[aria-current="true"] { color: var(--gold); }
.flag {
  width: 22px; height: auto; flex: none; display: block;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
@media (max-width: 820px) {
  .nav-links { margin-left: 0; width: 100%; gap: 1rem; }
}

/* ---- not-found ---- */
.notfound { padding: 40px 0; }

/* ---- honeypot (contact form) ---- */
.hp { position: absolute; left: -9999px; }

/* ---- footer ---- */
.site-footer {
  height: 40px; display: flex; align-items: center; justify-content: center;
  padding: 0 1rem; font-size: 0.75rem; overflow: hidden;
}
.site-footer .footer-line {
  margin: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-footer a { color: var(--gold); }

/* ================= DDG restyle primitives ================= */

.band { width: 100%; }
.band__inner { max-width: var(--maxw); margin: 0 auto; padding: var(--section-y) clamp(1.25rem, 5vw, 4rem); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: var(--section-y) clamp(1.25rem, 5vw, 4rem); }
.wrap.consulting{padding-top:20px;}
    .wrap.contact {
        padding-top: 20px;
    }
.band--navy { background: var(--green); color: var(--cream); }
.band--green { background: var(--ink); color: var(--cream); }
.band--bg {background: var(--bg); color: var(--ink);}
.band--navy h1, .band--navy h2, .band--navy h3,
.band--green h1, .band--green h2, .band--green h3 { color: var(--cream); }
.band--navy a, .band--green a { color: var(--gold); }
.band--navy .lede, .band--green .lede { color: rgba(242, 237, 230, 0.8); }
.band--bg h3 {color: var(--ink);}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split + .split { margin-top: clamp(2rem, 6vw, 5rem); }
.split__text > :first-child { margin-top: 0; }
.split--reverse .split__media { order: -1; }
.splitborder {padding: 40px; border-radius:25px;}
@media (max-width: 820px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split--reverse .split__media {
        order: 0;
    }
}

.figure { margin: 0; }
.figure img, .split__media img {
  display: block; width: 50%; height: auto;
  border-radius: 20px;
  box-shadow: 12px 12px 40px rgba(23, 34, 64, 0.18);
}
.split__media--placeholder {
  border-radius: 6% / 5%;
  background: rgba(23, 34, 64, 0.06);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--ink-soft);
}

.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 5vw, 3rem); }
@media (max-width: 820px) { .reason-grid { grid-template-columns: 1fr; } }
.reason > :first-child { margin-top: 0; }
.reason p { color: var(--ink-soft); }

.button {
  display: inline-block;
  background: var(--ink); color: var(--cream);
  text-transform: uppercase; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.7rem 2rem; border-radius: 5px; border: 1px solid var(--ink);
}
.button:hover { text-decoration: none; filter: brightness(1.15); }
.button--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.badge {
  display: inline-block; margin-top: 0.75rem;
  padding: 0.15rem 0.7rem; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--green); border-radius: 999px; color: var(--green);
}
.band--navy .badge, .band--green .badge { border-color: var(--gold); color: var(--gold); }

.intro .band__inner { display: flex; justify-content: center; padding-top: clamp(3rem, 10vw, 6rem); padding-bottom: clamp(3rem, 10vw, 6rem); }
.intro__logo { width: min(340px, 70vw); height: auto; }

/* ---- development detail (restyled) ---- */
.dev-detail { max-width: 760px; }
.dev-detail .crumb { color: var(--ink-soft); }
.dev-detail .figure { margin: 1.5rem 0; }
.dev-detail .dev-intro { margin: 1.5rem 0; }
.dev-features { list-style: none; padding: 0; }
.dev-features li { padding-left: 1.6rem; position: relative; margin: 0.4rem 0; }
.dev-features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--gold); border-radius: 2px; }
.dev-detail .cta { margin-top: 2rem; }

/* ---- contact form (restyled) ---- */
.contact-form { max-width: 560px; margin: 2rem 0; padding: clamp(1.25rem, 4vw, 2rem); background: rgba(255,255,255,0.5); border: 1px solid var(--rule); border-radius: 12px; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.contact-form label { color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--ink-soft); border-radius: 6px;
  padding: 0.6rem 0.8rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact .form-error { color: #b3261e; font-size: 0.85rem; }
.contact .notice { max-width: 560px; border-radius: 8px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.contact .notice-ok { background: rgba(38,57,47,0.1); border: 1px solid var(--green); color: var(--green); }
.contact .notice-err { background: #f7e3e1; border: 1px solid #b3261e; color: #b3261e; }
.contact-details { font-style: normal; color: var(--ink); line-height: 1.8; }

/* ---- references carousel ---- */
.ref-carousel { --ref-item-w: 250px; }
/* on the references page, push the banner to the bottom of the scroll area */
.content:has(.ref-carousel) { display: flex; flex-direction: column; }
.content:has(.ref-carousel) > .band { flex: 1; display: flex; flex-direction: column; }
.ref-carousel { display: flex; flex-direction: column; flex: 1; }
/* the featured area fills the space above the banner and links to the
   individual reference page */
.ref-feature {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  max-width: 60ch; margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  text-align: center; color: inherit; text-decoration: none;
}
.ref-feature:hover { text-decoration: none; }
.ref-feature__logo {
  max-height: 120px; max-width: 320px; width: auto; height: auto;
  background: #fff; border-radius: 16px; padding: 1rem; object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ref-feature:hover .ref-feature__logo { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.ref-feature__name { display: block; font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-top: 0.4rem; }
.ref-feature__text { display: block; color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.ref-feature__more { display: inline-block; margin-top: 0.4rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.ref-feature:hover .ref-feature__more { text-decoration: underline; }

.ref-banner { margin-top: auto; margin-bottom: 5px; background: var(--ink); padding: 10px; overflow: hidden; }
.ref-banner__track {
  display: flex; gap: 2rem; width: max-content; padding: 0 1rem;
  animation: ref-scroll var(--ref-dur, 30s) linear infinite;
}
@keyframes ref-scroll { to { transform: translateX(-50%); } }
.ref-banner:hover .ref-banner__track,
.ref-banner:focus-within .ref-banner__track { animation-play-state: paused; }

.ref-item {
  flex: none; width: var(--ref-item-w); height: 200px;
  background: #fff; border-radius: 14px;
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* the logo area is an explicit box inset 5px on every side, so no image can
   push past it regardless of its aspect ratio */
/* the logo area is an explicit 5px-inset box; the logo is scaled to fit it */
.ref-item__a, .ref-item__ph { position: absolute; inset: 5px; }
.ref-item__a { display: block; }
.ref-item__a > img { width: 100%; height: 100%; object-fit: contain; }
.ref-item > img {
  position: absolute; top: 5px; left: 5px;
  width: calc(100% - 10px); height: calc(100% - 10px);
  object-fit: contain;
}
.ref-item__ph {
  display: grid; place-items: center;
  color: var(--ink-soft); font-size: 0.8rem; text-align: center;
}
.ref-item.is-centred { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 10px 24px rgba(0, 0, 0, 0.3); }

/* individual reference page (reference.php) */
.ref-detail { max-width: 760px; }
.ref-detail .crumb { color: var(--ink-soft); }
.ref-detail__logo { max-width: 360px; margin: 0 0 1.25rem; }
.ref-detail__logo img {
  width: 100%; height: auto; max-height: 160px; object-fit: contain;
  background: #fff; border-radius: 16px; padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.ref-detail__text { margin: 1rem 0 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .ref-banner__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .ref-banner { padding: 1.5rem 1rem; }
}

.Main_title {
    margin-left:-15px;
    width: 880px;394px;
}

@media (max-width: 820px) {
    .Main_title {
        width: 394px;
    }
}