/* ===========================================================================
   Luna IT Consulting — stylesheet
   Rebuilt to match the design tokens read off the live Squarespace template:

     h1    Roboto 700, 3em,  letter-spacing -.01em, line-height 1
     h2    Roboto 700, 24px, letter-spacing -.07em, line-height .9, capitalize
     h3    futura-pt 400, 14px, uppercase, letter-spacing .15em, line-height 2
     body  proxima-nova 400, 18px, letter-spacing .01em, line-height 1.8
     chrome  20px white site border, 640px mobile breakpoint

   futura-pt and proxima-nova are licensed Adobe Fonts and cannot be
   self-hosted, so Jost and Inter stand in for them (see assets/fonts.css).
   =========================================================================== */

:root {
  /* Light theme. Every colour below is redefined in the
     prefers-color-scheme: dark block at the end of this file, so add new
     colours here as tokens rather than as literals further down. */
  color-scheme: light dark;

  --surface: #fff;
  --surface-alt: #f5f5f6;
  --ink: #222;
  --ink-strong: #000;
  --muted: #707070;
  --rule: #ddd;
  --rule-soft: #ececec;
  --header-bg: rgba(255, 255, 255, .96);
  --nav-link: rgba(0, 0, 0, .6);
  --shadow: rgba(0, 0, 0, .07);
  --brand: #719cfe;
  --glow: rgba(113, 156, 254, .13);
  --card: #fff;

  --font-head: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --border-w: 20px;
  --header-h: 120px;
  --wrap: 1100px;
  --wrap-narrow: 760px;
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the fixed header. */
  scroll-padding-top: calc(var(--header-h) + var(--border-w));
}

body {
  margin: 0;
  padding: var(--border-w);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The 20px white frame that rings the viewport. Content scrolls beneath it. */
.site-border {
  position: fixed;
  inset: 0;
  border: var(--border-w) solid var(--surface);
  pointer-events: none;
  z-index: 900;
}

/* --------------------------------------------------------------- typography */

h1, h2, h3 { margin: 0; }

h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 6.2vw, 3rem);
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--ink-strong);
}

h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  letter-spacing: -.07em;
  line-height: .9;
  color: var(--ink-strong);

  /* The live Squarespace site sets a site-wide `text-transform: capitalize`, so
     every h2 rendered in title case — "for small and medium sized businesses"
     became "For Small And Medium Sized Businesses". Dropped as part of the
     layout change; set this back to `capitalize` to restore the old look. */
  text-transform: none;
}

h3 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .15em;
  line-height: 2;
  color: var(--ink-strong);
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.lede {
  color: var(--muted);
  margin-top: 1.1em;
}

.subhead {
  margin-top: 1.2em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(64px, 11vw, 130px) 0; }
.section-alt { background: var(--surface-alt); }

.section-head {
  margin-bottom: clamp(40px, 6vw, 68px);
  max-width: 62ch;
}

/* Caps line length without centring the column, so every section shares one
   left edge instead of each being optically centred at its own width. */
.measure { max-width: 68ch; }

/* Small uppercase label above a heading. */
.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-strong);
  color: var(--surface);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: var(--border-w); top: var(--border-w); }

/* ------------------------------------------------------------------ header */

.header {
  position: fixed;
  top: var(--border-w);
  left: var(--border-w);
  right: var(--border-w);
  height: var(--header-h);
  z-index: 800;
  transition: background-color .25s ease, box-shadow .25s ease;
}

/* Solid once the page has scrolled past the hero (toggled in script.js). */
.header.is-stuck {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--rule-soft);
  backdrop-filter: saturate(160%) blur(6px);
}

.header-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

/* Site logo. Squarespace serves this lockup at max-width:150px in a tall
   centred header; here it sits left in a 120px bar, so it is sized by width
   and the header height is set to clear it. */
.brand-logo {
  display: block;
  width: 100px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

/* --------------------------------------------------------- theme toggle */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: var(--card);
}

.theme-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .17s ease-out, color .17s ease-out;
}

.theme-toggle button:hover { color: var(--ink-strong); }

.theme-toggle button[aria-pressed="true"] {
  background: var(--surface-alt);
  color: var(--ink-strong);
}

.theme-toggle svg {
  display: block;
  width: 15px;
  height: 15px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: var(--font-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--nav-link);
  text-decoration: none;
  padding: .618em 0;
  transition: color .17s ease-out;
}

.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--ink-strong); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink-strong);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 80vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 96px;
  /* Soft brand-blue wash behind the mark. Painted on the element itself
     rather than a ::before, because a negative z-index pseudo would fall
     behind the body background -- .hero creates no stacking context. */
  background: radial-gradient(58% 52% at 74% 44%, var(--glow), transparent 72%);
}

/* Copy left, mark right. The columns collapse to one below 760px. */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 3.9rem);
  letter-spacing: -.035em;
  line-height: 1.02;
}

.hero-mark {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  margin: 0 0 0 auto;
}

.hero-sub {
  margin-top: .6em;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  /* Line up with the left edge of .wrap's content box. */
  left: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
}

.scroll-cue-text {
  font-family: var(--font-accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
}

/* Thin vertical rule that pulses downward — the template's scroll indicator. */
.scroll-cue-line {
  width: 1px;
  height: 56px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: var(--ink-strong);
  animation: scroll-cue 2.1s cubic-bezier(.6, .04, .3, 1) infinite;
}

@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------------------------------------------------------------- banners */

.banner {
  height: clamp(300px, 52vh, 560px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* parallax, per tweak-overlay-parallax-enabled */
}

.banner-chairs { background-image: url("assets/banner-chairs.webp"); }
.banner-desk   { background-image: url("assets/banner-desk.webp"); }

/* --------------------------------------------------------------- services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  align-items: start;
}

.service {
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: var(--card);
  font-size: 16px;
  line-height: 1.7;
}

/* Card titles read as headings rather than the site's uppercase h3 label. */
.service h3 {
  margin-bottom: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.service-lede {
  margin-bottom: 1em;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.5;
}

.service-points {
  list-style: none;
  margin: 1.3em 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.2em;
  font-size: 15px;
}

.service-points li {
  position: relative;
  margin-bottom: .65em;
  padding-left: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.service-points li:last-child { margin-bottom: 0; }

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ------------------------------------------------------------------- team */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 980px;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter .4s ease;
}

.profile-photo img:hover { filter: grayscale(0%); }

.profile-name { margin-bottom: .1em; }

.profile-role {
  color: var(--muted);
  margin-bottom: 1.6em;
}

/* --------------------------------------------------------------- contact */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.contact-direct {
  margin: 24px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.contact-direct a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-direct a:hover,
.contact-direct a:focus-visible { color: var(--ink-strong); }


.btn {
  display: inline-block;
  padding: 15px 44px;
  border: 1px solid var(--ink-strong);
  background: var(--ink-strong);
  color: var(--surface);
  font-family: var(--font-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .17s ease-out, color .17s ease-out;
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
  background: var(--surface);
  color: var(--ink-strong);
}

/* Outline variant, paired with the filled .btn in the contact CTA row. */
.btn-secondary {
  background: transparent;
  color: var(--ink-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--ink-strong);
  color: var(--surface);
}

/* The address itself is this button's label, so it must not be uppercased or
   tracked out like the others, and it needs a tighter box to fit narrow
   screens. overflow-wrap is a safety net below ~300px. */
.btn-email {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: none;
  letter-spacing: .01em;
  padding-left: 28px;
  padding-right: 28px;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--rule-soft);
  padding: clamp(56px, 8vw, 88px) 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(32px, 5vw, 56px);
}

.footer-col h3 { margin-bottom: 1.2em; }

.footer address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .17s ease-out;
}

.footer a:hover,
.footer a:focus-visible { color: var(--ink-strong); }

.hours,
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var(--muted);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 190px;
  line-height: 1.9;
}

.footer-nav li { line-height: 1.9; }

.copyright {
  max-width: var(--wrap);
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding: 0 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------ legal pages */

.legal { padding-top: calc(var(--header-h) + 72px); }

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-family: var(--font-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible { color: var(--ink-strong); }

.legal h1 { margin-bottom: .3em; }

.legal h2 {
  margin: 2em 0 .7em;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  letter-spacing: -.04em;
  line-height: 1.15;
}

.legal .updated {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 2.4em;
}

.legal ul {
  margin: 0 0 1.4em;
  padding-left: 1.2em;
}

.legal li { margin-bottom: .8em; }

.legal a { text-decoration: underline; }

/* ------------------------------------------------------- reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 320px; }
}

/* tweak-mobile-breakpoint = 640px */
@media (max-width: 640px) {
  :root { --border-w: 12px; --header-h: 96px; }

  body { font-size: 17px; }

  .brand-logo { width: 78px; }

  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { max-width: 190px; margin: 0 0 8px; }
  .theme-toggle button { width: 28px; height: 28px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: calc(var(--border-w) + var(--header-h));
    left: var(--border-w);
    right: var(--border-w);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    background: var(--surface);
    border-top: 1px solid var(--rule-soft);
    box-shadow: 0 18px 30px var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  .nav-menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Fixed backgrounds are unreliable on mobile Safari. */
  .banner { background-attachment: scroll; }

  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { text-align: center; }
  .btn-email { font-size: 13px; padding-left: 16px; padding-right: 16px; }

  .hours li { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .profile-photo img {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .scroll-cue-line::after { animation: none; }
}

/* Printing: drop the chrome, keep the words. */
@media print {
  .site-border,
  .header,
  .scroll-cue,
  .banner,
  .contact-actions { display: none; }

  body { padding: 0; font-size: 12pt; }
  .section { padding: 18pt 0; }
}

/* -------------------------------------------------------------- dark theme */
/* Three states. With no override, prefers-color-scheme decides; an explicit
   choice sets data-theme on <html> and wins in both directions. The token
   block is duplicated rather than shared because plain CSS has no way to
   assign one declaration list to two selectors -- keep the two copies in sync.
   assets/theme-init.js applies a saved choice before first paint. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1c1d1f;
    --surface-alt: #1f2023;
    --ink: #d7d7d4;
    --ink-strong: #f5f5f3;
    --muted: #9b9b98;
    --rule: #3b3c3f;
    --rule-soft: #2c2d30;
    --header-bg: rgba(28, 29, 31, .96);
    --nav-link: rgba(255, 255, 255, .66);
    --shadow: rgba(0, 0, 0, .5);
    --brand: #719cfe;
    --glow: rgba(113, 156, 254, .16);
    --card: #26272b;
  }

  :root:not([data-theme="light"]) .banner { filter: brightness(.78) saturate(.95); }
}

:root[data-theme="dark"] {
    --surface: #1c1d1f;
    --surface-alt: #1f2023;
    --ink: #d7d7d4;
    --ink-strong: #f5f5f3;
    --muted: #9b9b98;
    --rule: #3b3c3f;
    --rule-soft: #2c2d30;
    --header-bg: rgba(28, 29, 31, .96);
    --nav-link: rgba(255, 255, 255, .66);
    --shadow: rgba(0, 0, 0, .5);
    --brand: #719cfe;
    --glow: rgba(113, 156, 254, .16);
    --card: #26272b;
}

:root[data-theme="dark"] .banner { filter: brightness(.78) saturate(.95); }

/* Keep native controls and scrollbars in step with an explicit choice. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* The header wordmark is black artwork, so each theme needs its own file.
   A <picture> media source cannot see data-theme, so both images ship and
   CSS picks one -- ~10KB each, and it avoids a JS-driven swap that would
   flash on load. */
.brand-logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo-dark { display: block; }
}

:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }
:root[data-theme="light"] .brand-logo-light { display: block; }
:root[data-theme="light"] .brand-logo-dark { display: none; }
