/* DBLogic static site - single stylesheet. No inline styles are used anywhere in the HTML
   so the Content-Security-Policy can keep style-src 'self'. */

:root {
  --ink: #1b2831;
  --slate: #2d4352;
  --slate-deep: #22333f;
  --lime: #afd300;
  --lime-deep: #839e02;
  --lime-text: #4f6100;
  --blue: #007bab;
  --paper: #f5f7f3;
  --white: #ffffff;
  --line: #dde3d8;
  --muted: #55636c;
  --radius: 6px;
  --wrap: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
h4 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 46px; height: 46px; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.4rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 0.55rem 0.8rem; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.98rem; border-radius: var(--radius); }
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.site-nav .nav-cta a { background: var(--lime); color: var(--ink); margin-left: 0.4rem; font-weight: 650; }
.site-nav .nav-cta a:hover { background: var(--ink); color: var(--white); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: var(--radius); font-weight: 650; text-decoration: none; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; cursor: pointer; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--slate); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- Hero and banners ---------- */
.hero, .banner { position: relative; color: var(--white); background-color: var(--ink); background-size: cover; background-position: center; overflow: hidden; }
.hero { padding: clamp(4.5rem, 11vw, 9rem) 0; background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.95) 0%, rgba(27, 40, 49, 0.8) 52%, rgba(27, 40, 49, 0.5) 100%), url("../images/header01.jpg"); }
.hero .wrap, .banner .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15em; }
.hero p { max-width: 38rem; font-size: 1.2rem; color: #e3eaee; }
.hero .since { margin-top: 2.2rem; font-size: 0.95rem; color: #b9c6cd; }
.ring { position: absolute; z-index: 1; right: -8%; top: 50%; width: min(58vw, 720px); transform: translateY(-50%); opacity: 0.9; pointer-events: none; }

.banner { padding: clamp(3.5rem, 8vw, 6rem) 0; background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.93), rgba(45, 67, 82, 0.78)); }
.banner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.3em; }
.banner p { max-width: 42rem; margin: 0; color: #dfe7ec; font-size: 1.15rem; }
.banner--services { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.93), rgba(45, 67, 82, 0.8)), url("../images/servicesBG.jpg"); }
.banner--msp { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.93), rgba(45, 67, 82, 0.8)), url("../images/msp-BG.jpg"); }
.banner--m365 { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.92), rgba(27, 40, 49, 0.6)), url("../images/ms-reseller-bg.jpg"); }
.banner--about { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.93), rgba(45, 67, 82, 0.75)), url("../images/pexels-marc-mueller-380769.jpg"); }
.banner--contact { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.93), rgba(45, 67, 82, 0.75)), url("../images/pexels-marc-mueller-380769.jpg"); }
.banner--support { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.93), rgba(45, 67, 82, 0.75)), url("../images/support.jpg"); }
.banner--asset { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.94), rgba(27, 40, 49, 0.7)), url("../images/warehouse.jpg"); }
.banner--cases { background-image: linear-gradient(100deg, rgba(27, 40, 49, 0.94), rgba(45, 67, 82, 0.8)), url("../images/pexels-andrea-piacquadio-840996.jpg"); }
.banner--legal { background-image: linear-gradient(100deg, var(--ink), var(--slate)); padding: 3.5rem 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--slate-deep); color: var(--white); }
.section--dark a:not(.btn) { color: var(--lime); }
.section--dark a:not(.btn):hover { color: var(--white); }
.section--dark .lead { color: var(--white); }
.section--dark p { color: #dbe4e9; }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.25fr 1fr; }
.split img { border-radius: var(--radius); width: 100%; }
.split--phone img { max-width: 360px; margin-inline: auto; border-radius: 0; }

/* Services on home */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.service { border-top: 4px solid var(--lime); background: var(--white); }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.service h3 { margin: 1.1rem 0 0.4rem; padding-inline: 1.1rem; }
.service p { color: var(--muted); font-size: 1rem; padding: 0 1.1rem 1.3rem; margin: 0; }
.service-grid + .more-link { margin-top: 2rem; }
.more-link { font-weight: 650; }

/* Clients */
.client-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; list-style: none; margin: 0; padding: 0; }
.client-row li { margin: 0; flex: 0 1 auto; }
.client-row a { display: block; padding: 0.5rem; opacity: 0.75; transition: opacity 0.2s; }
.client-row a:hover, .client-row a:focus-visible { opacity: 1; }
.client-row img { height: 56px; width: auto; max-width: 180px; object-fit: contain; }

/* Content pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; }
.feature { border-left: 4px solid var(--lime); padding-left: 1.25rem; }
.feature h3, .feature h4 { margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--muted); }
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 1.9rem; }
.tick-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.5em; width: 0.55rem; height: 0.95rem; border: solid var(--lime-deep); border-width: 0 3px 3px 0; transform: rotate(40deg) translateY(-30%); }
.section--dark .tick-list li::before { border-color: var(--lime); }
.callout { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.callout h2, .callout h3 { margin: 0; font-size: 1.5rem; max-width: 30rem; }
.callout .btn { flex: none; }

/* Case studies */
.case-list { display: grid; gap: 2.4rem; }
.case-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.case-item:last-child { border-bottom: 0; padding-bottom: 0; }
.case-item img { width: 100%; border-radius: var(--radius); aspect-ratio: 960 / 441; object-fit: cover; }
.case-item h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.tags li { margin: 0; font-size: 0.85rem; padding: 0.2rem 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--slate); }
.case-hero-img { width: 100%; }
blockquote { margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.5rem; border-left: 4px solid var(--lime); font-size: 1.2rem; line-height: 1.55; }
blockquote p { margin: 0 0 0.6rem; }
blockquote footer { font-size: 0.95rem; color: var(--muted); font-style: normal; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem 3rem; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-card address { font-style: normal; }
.contact-card p { margin-bottom: 0.6rem; }
.map-box { margin-top: 2.5rem; min-height: 320px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; overflow: hidden; }
.map-box iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-box.is-loaded { padding: 0; }
.map-box p { max-width: 32rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd9de; padding: 3.5rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1rem; color: var(--white); margin-bottom: 0.8rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-brand img { width: 56px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 20rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; font-size: 0.9rem; color: #a9b8bf; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-base ul { list-style: none; margin: 0; padding: 0; }
.footer-base li { margin: 0; }
.site-footer address { font-style: normal; margin-bottom: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .split--wide-text, .case-item { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ring { opacity: 0.35; right: -30%; }
}
@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border: 2px solid var(--ink); color: var(--ink); font: inherit; font-weight: 650; padding: 0.45rem 0.9rem; border-radius: var(--radius); cursor: pointer; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.2rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .nav-cta a { margin: 0.4rem 0 0; text-align: center; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .btn-row, .ring, .map-box { display: none; }
  body { color: #000; }
}
