/* Saris Tech Services. Plain CSS, no build step.
   Palette and sizes carried over from the old Blocksy theme. */

:root {
  color-scheme: dark;

  --gold: #946f00;        /* buttons; Blocksy gold #a37d00, deepened for white-text contrast */
  --gold-text: #e0b030;   /* links on dark backgrounds */
  --rust: #a74b00;        /* active menu item, button hover */
  --sand: #c4bfb6;
  --heading: #d6d6d6;
  --border: #374960;
  --ink: #171c27;         /* page and footer background */
  --slate: #2d3b42;       /* header background */
  --text: #f2f2f2;
  --rule: #fafafa;        /* thin line under the header */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --container: 1290px;
  --gutter: clamp(16px, 4vw, 40px);
  --prose: 46rem;
  --nav-panel: rgba(18, 21, 25, 0.98);

  --page-bg: url("/assets/img/bg/home.webp");
  --bg-pos-sm: 15% 0%;
}

/* Page photos (each page sets its own) */
[data-page="home"]       { --page-bg: url("/assets/img/bg/home.webp"); }
[data-page="automation"] { --page-bg: url("/assets/img/bg/automation.webp"); --bg-pos-sm: 60% 0%; }
[data-page="ai"]         { --page-bg: url("/assets/img/bg/ai.webp"); --bg-pos-sm: 70% 0%; }
[data-page="consulting"] { --page-bg: url("/assets/img/bg/consulting.webp"); --bg-pos-sm: 60% 0%; }
[data-page="it"]         { --page-bg: url("/assets/img/bg/it.webp"); --bg-pos-sm: 60% 0%; }
[data-page="design"]     { --page-bg: url("/assets/img/bg/design.webp"); --bg-pos-sm: 60% 0%; }
[data-page="newbiz"]     { --page-bg: url("/assets/img/bg/newbiz.webp"); --bg-pos-sm: 65% 0%; }
[data-page="contact"]    { --page-bg: url("/assets/img/bg/contact.webp"); --bg-pos-sm: 70% 0%; }
[data-page="about"]      { --page-bg: url("/assets/img/bg/about.webp"); --bg-pos-sm: 72% 0%; }

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
}

/* Fixed photo behind the content. A fixed pseudo-element instead of
   background-attachment: fixed, which iOS Safari ignores. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 28, 39, 0.72) 0%, rgba(23, 28, 39, 0.45) 45%, rgba(23, 28, 39, 0.2) 100%),
    var(--page-bg) right 30% / contain no-repeat,
    var(--ink);
}

@media (max-width: 999.98px) {
  body::before {
    background:
      linear-gradient(rgba(23, 28, 39, 0.62), rgba(23, 28, 39, 0.62)),
      var(--page-bg) var(--bg-pos-sm) / cover no-repeat,
      var(--ink);
  }
}

::selection { background: var(--gold); color: #fff; }

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

a { color: var(--gold-text); text-underline-offset: 0.18em; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--slate);
  padding: 30px 0 20px;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  height: 100px;
  border-bottom: 2px solid var(--rule);
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
}
.logo img { display: block; height: 80px; width: auto; }

.site-nav ul {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { display: flex; }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--rust);
  color: #fff;
}

.menu-toggle,
.menu-close,
.nav-backdrop { display: none; }

/* Tighter menu spacing just above the mobile breakpoint so all nine items fit */
@media (min-width: 1080px) and (max-width: 1199.98px) {
  .header-inner { gap: 16px; }
  .site-nav a { padding: 0 8px; }
}

/* ---------- Mobile header and off-canvas menu ---------- */

@media (max-width: 1079.98px) {
  .site-header { padding: 16px 0 12px; }
  .header-inner { height: 76px; align-items: center; }
  .logo img { height: 56px; }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .js .menu-toggle:hover { background: rgba(255, 255, 255, 0.08); }

  .js .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(500px, 65vw);
    padding: 72px 32px 32px;
    background: var(--nav-panel);
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .js.nav-open .site-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.25s ease;
  }
  .js .site-nav ul { flex-direction: column; height: auto; }
  .js .site-nav a {
    padding: 10px 12px;
    font-size: 20px;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 3px;
    color: #fff;
  }
  .js .menu-close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .js .menu-close:hover { background: rgba(255, 255, 255, 0.08); }

  .js.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.45);
  }
  .js.nav-open { overflow: hidden; }

  /* Without JavaScript the menu simply wraps under the logo */
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .site-nav ul { flex-wrap: wrap; height: auto; }
  .no-js .site-nav a { padding: 8px 10px; }
}

@media (max-width: 689.98px) {
  .js .site-nav { width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  .js .site-nav, .js.nav-open .site-nav { transition: none; }
}

/* ---------- Content ---------- */

.site-main {
  flex: 1;
  padding: 60px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.prose { max-width: var(--prose); }
.prose > * { margin-block: 0 1.5em; }
.prose > :last-child { margin-bottom: 0; }

h1, h2, h3 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
}

.page-title { font-size: 30px; margin: 0 0 1.1em; }
.page-heading { font-size: clamp(30px, 5vw, 40px); margin: 0 0 0.6em; }

.prose ul { padding-left: 1.5em; }
.prose li + li { margin-top: 0.15em; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 20px;
  border-radius: 3px;
  background: var(--gold);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--rust); color: #fff; }

.contact-card {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(23, 28, 39, 0.72);
  text-shadow: none;
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
}
.contact-card dd {
  margin: 2px 0 18px;
  font-size: clamp(19px, 3.4vw, 24px);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card dd:last-child { margin-bottom: 0; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.signature { color: var(--heading); }

@media (max-width: 689.98px) {
  .site-main { padding: 50px 0; }
  .page-title { font-size: 26px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  padding: 28px 0;
  font-size: 15px;
  line-height: 1.5;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.footer-inner p { margin: 0; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
