/* Lodebek Computer Services LLC - hand-written stylesheet, no framework. */
:root {
  --navy-900: #010618;   /* header, scheduling band */
  --navy-800: #121f34;   /* image banner base */
  --navy-700: #1b293e;   /* buttons */
  --navy-600: #14243b;   /* button hover */
  --navy-500: #445268;   /* outline-button hover */
  --ink: #010618;
  --ink-soft: #15141a;
  --muted: #677077;
  --soft: #f0f5f9;       /* services + contact background */
  --line: #d0d5d9;
  --input-line: #cfcfd8;
  --white: #ffffff;
  --ok: #0f6b3a;
  --err: #c50042;
  --font-head: "Bai Jamjuree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 28px; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin: 0 0 16px; }
h1 { font-size: clamp(36px, 4.2vw, 46px); line-height: 1.15; }
h2 { font-size: clamp(28px, 3vw, 32px); line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.2; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 22px; padding: 9px 20px;
  background: var(--navy-700); color: var(--white);
  transition: background-color .16s ease-out, box-shadow .16s ease-out;
}
.btn:hover, .btn:focus-visible { background: var(--navy-600); color: var(--white); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 4px var(--navy-700); }
.btn-lg { font-size: 20px; line-height: 28px; padding: 12px 24px; }
.btn-outline, .btn-nav { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-outline:hover, .btn-nav:hover, .btn-outline:focus-visible, .btn-nav:focus-visible { background: var(--navy-500); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100; width: 100%; background: var(--navy-900); color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,.2), 0 0 1px rgba(0,0,0,.2), inset 0 0 0 1px rgba(92,104,124,.4);
  transform: translateZ(0); backface-visibility: hidden; /* own compositor layer: stops sub-pixel jitter while pinned */
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--white); text-decoration: none; }
.brand-dark { color: var(--ink-soft); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.icon-link { display: inline-flex; align-items: center; line-height: 1; }
.icon-link svg { display: block; flex: none; }
.nav-links li { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; }

/* Hero */
.hero { background: var(--white); padding: 56px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-media img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; width: 100%; max-width: 640px; }
.hero-copy p { font-size: 18px; line-height: 30px; margin-bottom: 24px; }

/* How Lodebek works */
.how { background: var(--white); padding: 56px 0 72px; }
.how .lede { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 30px; margin-bottom: 20px; color: var(--ink-soft); }
.how .btn { margin-top: 8px; }

/* Services */
.services { background: var(--soft); padding: 64px 0 72px; }
.services h2 { margin-bottom: 38px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { margin: 8px 0 0; }
.card p { margin: 0; }

/* Image banner */
.banner {
  height: 320px; min-height: 160px; background-color: var(--navy-800);
  background-image: linear-gradient(rgba(18,31,52,.2), rgba(18,31,52,.2)), url("/img/banner-1200.webp");
  background-position: center; background-repeat: no-repeat; background-size: cover;
}
@media (min-width: 1200px) { .banner { background-image: linear-gradient(rgba(18,31,52,.2), rgba(18,31,52,.2)), url("/img/banner-1920.webp"); } }

/* Scheduling */
.scheduling { background: var(--navy-900); color: var(--white); padding: 72px 0; }
.scheduling h2 { color: var(--white); }
.scheduling p { color: #fbfcfe; margin-bottom: 24px; }

/* Contact */
.contact { background: var(--soft); padding: 64px 0 72px; }
.form-wrap { max-width: 660px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 18px; color: var(--ink); background: var(--white);
  border: 1px solid var(--input-line); border-radius: 4px; padding: 26px 12px 10px; resize: none;
}
.field textarea { min-height: 120px; padding-top: 1.8rem; line-height: 22px; }
.field label {
  position: absolute; left: 12px; top: 14px; font-size: 16px; line-height: 18px; color: var(--muted);
  pointer-events: none; transition: transform .12s ease-out, font-size .12s ease-out, top .12s ease-out;
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy-700); outline-offset: 0; border-color: var(--navy-700); }
.field input:focus::placeholder, .field textarea:focus::placeholder { color: #a8b1bf; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label { top: 7px; font-size: 12px; line-height: 14px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.notice { display: none; border-radius: 4px; padding: 14px 16px; margin: 0 0 20px; background: var(--white); border-left: 4px solid var(--line); }
.notice p { margin: 0; }
.notice-ok { border-left-color: var(--ok); }
.notice-err { border-left-color: var(--err); }
.notice.show, .notice:target { display: block; }

/* Footer */
.site-footer { background: var(--white); box-shadow: inset 0 1px 0 0 var(--line); padding: 48px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.footer-row .icon-link { color: var(--ink-soft); }
.footer-contact { margin-bottom: 8px; }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { text-decoration: underline; }
.footer-copy { color: var(--ink); opacity: .7; font-size: 13px; line-height: 18px; margin: 0; }

/* Simple pages (privacy, 404) */
.page { padding: 56px 0 80px; }
.page .narrow { max-width: 720px; }
.page ul { padding-left: 24px; }

/* Responsive */
@media (max-width: 991px) {
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media img { margin: 0 auto; max-width: 560px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .nav-toggle { display: block; }
  .js .nav-links { display: none; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--navy-900); padding: 8px var(--gutter) 20px; box-shadow: 0 8px 16px rgba(0,0,0,.3); }
  .nav-links li { width: 100%; }
  .nav-links a:not(.icon-link) { display: block; padding: 12px 0; }
  .nav-links .btn-nav { display: inline-block; padding: 9px 20px; margin-top: 8px; }
  .js .nav-links.open { display: flex; }
}
@media (max-width: 575px) {
  .brand { font-size: 20px; max-width: 70%; }
  .hero-copy p { font-size: 17px; line-height: 28px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .field label, .btn { transition: none; } }
