/*
  Brost Auto Worx static site
  Root-folder version: index.html, style.css, b_logo.jpg, logo.jpg
  No JavaScript required.
*/

:root {
  --sidebar-width: 320px;
  --accent: #6f777d;
  --accent-dark: #3d4145;
  --bg: #ffffff;
  --text: #343434;
  --muted: #6f777d;
  --line: #e5e5e5;
  --soft: #f6f7f7;
  --sidebar-bg: #343434;
  --sidebar-text: #ffffff;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

a:hover,
a:focus {
  border-bottom-style: solid;
}

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

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  text-align: center;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.6rem;
}

.avatar-link {
  border: 0;
  display: inline-block;
  margin: 0 auto 1.25rem;
}

.avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 auto;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18);
}

.site-title {
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 0.45rem;
  color: var(--sidebar-text);
}

.site-title a,
.sidebar a {
  color: var(--sidebar-text);
}

.site-title a {
  border: 0;
}

.tagline {
  margin: 0 0 2rem;
  color: rgba(255,255,255,0.86);
  font-size: 0.95rem;
  line-height: 1.5;
}

.nav {
  display: grid;
  gap: 0;
  margin: 0 -1.6rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.22);
}

.nav a {
  display: block;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav a:hover,
.nav a:focus {
  background: rgba(255,255,255,0.14);
}

.sidebar-contact {
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.sidebar-contact a {
  border-bottom-color: rgba(255,255,255,0.65);
  justify-self: center;
}

.main {
  margin-right: var(--sidebar-width);
  min-height: 100vh;
}

.hero {
  height: 42vh;
  min-height: 280px;
  max-height: 520px;
  background: #222;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 4.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: var(--soft);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h2 {
  margin: 0 0 0.75rem;
  color: #222;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 1.25rem;
  margin-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.contact-card p {
  margin: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.footer {
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    font-size: 17px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .sidebar-inner {
    min-height: 0;
    display: block;
    padding: 1.5rem 1rem;
  }

  .avatar {
    width: 86px;
    height: 86px;
  }

  .tagline {
    margin-bottom: 1.25rem;
  }

  .nav {
    margin: 0 -1rem 1.25rem;
  }

  .nav a {
    padding: 0.7rem 1rem;
  }

  .main {
    margin-right: 0;
  }

  .hero {
    height: 30vh;
    min-height: 210px;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .button-row {
    display: grid;
  }

  .button {
    text-align: center;
  }
}


/* Decorative flying crows: uses the root-folder many-crows.png sprite sheet. */
.crow-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.crow {
  position: absolute;
  top: var(--top);
  left: 0;
  width: calc(var(--w) * var(--scale));
  height: calc(var(--h) * var(--scale));
  background-image: url("many-crows.png");
  background-repeat: no-repeat;
  background-size: calc(1154px * var(--scale)) calc(332px * var(--scale));
  background-position: calc(var(--x) * var(--scale)) calc(var(--y) * var(--scale));
  opacity: 1;
  animation: crow-flight var(--duration) linear infinite;
  animation-delay: var(--delay);
  transform-origin: center;
}

@keyframes crow-flight {
  0% {
    transform: translateX(var(--x0)) translateY(0) scaleX(var(--flip));
  }

  25% {
    transform: translateX(var(--x25)) translateY(calc(var(--bob) * -1)) scaleX(var(--flip));
  }

  50% {
    transform: translateX(var(--x50)) translateY(var(--bob)) scaleX(var(--flip));
  }

  75% {
    transform: translateX(var(--x75)) translateY(calc(var(--bob) * -0.6)) scaleX(var(--flip));
  }

  100% {
    transform: translateX(var(--x100)) translateY(0) scaleX(var(--flip));
  }
}

.main {
  position: relative;
  z-index: 2;
}

.sidebar {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .crow-layer {
    display: none;
  }
}



.sidebar-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.sidebar-icons a {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  color: var(--sidebar-text);
}

.sidebar-icons a:hover,
.sidebar-icons a:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.8);
}

.sidebar-icons svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}