/* LeistungWeb demo - design tokens, base, header, hero, buttons.
   Tokens measured from the reference site; see docs/design/01-style-spec.md. */

:root {
  --teal-deep: #00474B;
  --teal: #158E96;
  --teal-light: #87C7CA;
  --accent: #58ACB0;
  --teal-cyan: #008F96;
  --ink: #343434;
  --muted: #717171;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --gutter: 64px;
  --maxw: 1440px;
  --font: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.solid {
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 71, 75, .12);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 32, 34, .62) 0%,
    rgba(0, 32, 34, .22) 62%,
    rgba(0, 32, 34, 0) 100%);
  pointer-events: none;
}

.site-header.solid::before { display: none; }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.brand { display: flex; align-items: center; height: 46px; }
.brand img { height: 100%; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--paper);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.site-header.solid .nav a { color: var(--ink); }
.nav a:hover, .nav a.active { color: var(--teal-light); }
.nav a.active { border-bottom-color: var(--accent); }
.site-header.solid .nav a:hover,
.site-header.solid .nav a.active { color: var(--teal-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 5px auto;
  background: var(--paper);
}

.site-header.solid .nav-toggle span { background: var(--ink); }

/* hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slides img.on { opacity: 1; }

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 32, 34, .86) 0%,
    rgba(0, 32, 34, .62) 42%,
    rgba(0, 32, 34, .18) 100%);
}

.hero-body {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) 96px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 28px;
  max-width: 15ch;
}

.hero p {
  font-size: clamp(17px, 1.3vw, 24px);
  line-height: 1.4;
  max-width: 34ch;
  margin: 0 0 36px;
}

.hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: 96px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 44px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hero-dots button::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: rgba(255, 255, 255, .35);
  transition: background .2s ease;
}

.hero-dots button:hover::after { background: rgba(255, 255, 255, .7); }
.hero-dots button.on::after { background: var(--accent); }

/* buttons */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--paper);
}

.cta-box {
  width: 56px;
  height: 56px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #10211f;
  transition: background .2s ease, transform .2s ease;
}

.cta:hover .cta-box {
  background: var(--paper);
  transform: translateX(4px);
}

.pill {
  display: inline-block;
  cursor: pointer;
  padding: 12px 26px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}

.pill:hover { background: var(--accent); color: #10211f; }

.pill-ghost {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}

.pill-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #10211f;
}

/* sections */

.band { position: relative; padding: 110px 0; overflow: hidden; }

.band-photo {
  position: relative;
  color: var(--paper);
  padding: 120px 0;
  background-size: cover;
  background-position: center;
}

.band-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 32, 34, .9) 0%,
    rgba(0, 32, 34, .7) 38%,
    rgba(0, 32, 34, .1) 72%);
}

.band-photo .wrap { position: relative; }

.rail {
  position: absolute;
  left: calc(var(--gutter) - 24px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .35);
}

.band-teal { background: var(--teal-deep); color: var(--paper); }
.band-wash { background: var(--wash); }
.band-ink { background: var(--teal-deep); color: var(--paper); }

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.label::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

h2.title {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 22ch;
}

h3.sub {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.45;
  max-width: 62ch;
  margin: 0 0 20px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }

/* product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
  margin-top: 60px;
}

.product { text-align: center; }

.product-figure {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.product-figure img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .35s ease;
}

.product:hover .product-figure img { transform: translateY(-8px); }
.product h3 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }

/* split feature */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

.split-media img { width: 100%; }

/* list */

.tick-list { list-style: none; padding: 0; margin: 24px 0 0; }

.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* accordion */

.faq { border-top: 1px solid rgba(52, 52, 52, .3); }
.faq-item { border-bottom: 1px solid rgba(52, 52, 52, .3); }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 22px;
  padding: 26px 48px 26px 0;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}

.faq-q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}

.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(225deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a p { margin: 0 0 26px; max-width: 78ch; color: var(--muted); }

/* offices */

.office {
  border-top: 1px solid rgba(255, 255, 255, .28);
  padding-top: 22px;
}

.office h3 {
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.office p { margin: 6px 0 0; color: rgba(255, 255, 255, .82); }

/* form */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 900px;
}

.form label {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form input, .form textarea, .form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(52, 52, 52, .28);
  border-radius: 6px;
  font: inherit;
  background: var(--paper);
}

.form .full { grid-column: 1 / -1; }

/* footer */

.site-footer {
  background: var(--wash);
  color: var(--ink);
  padding: 80px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr .8fr;
  gap: 56px;
  padding-bottom: 48px;
}

.site-footer h4 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.site-footer p { margin: 0 0 8px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { font-size: 14px; color: #5c5c5c; }
.footer-links a:hover { color: var(--teal-deep); }

.footer-base {
  border-top: 1px solid rgba(52, 52, 52, .16);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-base .active { color: var(--teal-deep); }

/* interior page head */

.page-head {
  background: var(--teal-deep);
  color: var(--paper);
  padding: 200px 0 84px;
}

.page-head h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.page-head p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, .84);
}

.crumb {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 20px;
}

.crumb a:hover { color: var(--teal-light); }

/* reveal */

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

.js .reveal.in { opacity: 1; transform: none; }

/* responsive */

@media (max-width: 1100px) {
  .cols, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .header-inner { height: 68px; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px var(--gutter) 24px;
    gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a, .site-header.solid .nav a { color: var(--ink); }
  .nav-toggle { display: block; }
  .hero { min-height: 78vh; }
  .hero-body { padding-bottom: 64px; }
  .hero-dots { display: none; }
  .cols, .product-grid, .cols-2, .form, .footer-grid { grid-template-columns: 1fr; }
  .band, .band-photo { padding: 72px 0; }
  .page-head { padding: 140px 0 60px; }
  .footer-base { flex-direction: column; }
}

/* accessibility additions */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #10211f;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-head :focus-visible,
.band-teal :focus-visible,
.band-ink :focus-visible {
  outline-color: var(--paper);
}

.form-status {
  margin: 16px 0 0;
  min-height: 1.4em;
  font-size: 15px;
  color: var(--teal-deep);
  font-weight: 700;
}

.form-status.warn { color: #a4441f; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

