/* ===== AC Grinding Corp — self-contained stylesheet ===== */

:root {
  --ink: #1a1d21;
  --muted: #55606b;
  --charcoal: #1b1f24;
  --charcoal-2: #242a31;
  --line: #e4e7ea;
  --bg: #ffffff;
  --bg-alt: #f4f6f7;
  --accent: #e8801a;         /* industrial amber */
  --accent-dark: #c8690c;
  --steel: #3b4650;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  letter-spacing: 0.02em;
}
.section .lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: -0.25em auto 2.5em;
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.nav__brand img {
  height: 34px;
  /* logo art is solid black; render it white on the dark nav */
  filter: brightness(0) invert(1);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  color: #d7dde3;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 96px 20px 104px;
  background: linear-gradient(rgba(17, 20, 23, 0.72), rgba(17, 20, 23, 0.82)),
    url("/images/vollmerfacing.jpg") center / cover no-repeat;
}
.hero__logo {
  height: 110px;
  margin: 0 auto 22px;
  /* whiten the solid-black logo, then add a shadow for separation from the photo */
  filter: brightness(0) invert(1) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.65));
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__tagline {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: #e7ebef;
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== Services ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Slideshow ===== */
.gallery {
  max-width: 760px;
  margin: 0 auto;
}
.slideshow-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.mySlides {
  display: none;
}
.mySlides img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px 18px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.35);
  user-select: none;
  border: 0;
  transition: background 0.3s ease;
}
.prev {
  left: 0;
  border-radius: 0 6px 6px 0;
}
.next {
  right: 0;
  border-radius: 6px 0 0 6px;
}
.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.7);
}
.numbertext {
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0 0 6px 0;
}
.dots {
  text-align: center;
  margin-top: 16px;
}
.dot {
  cursor: pointer;
  height: 13px;
  width: 13px;
  margin: 0 4px;
  background: #c3cad0;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.4s ease;
}
.active,
.dot:hover {
  background: var(--accent);
}
.fade {
  animation: fade 1s ease;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* ===== About ===== */
.about p {
  max-width: 720px;
  margin: 0 auto 1.1em;
  text-align: center;
  font-size: 1.05rem;
}
.about .distributor {
  color: var(--muted);
  font-style: italic;
  font-size: 0.98rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.contact-card h3 svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex: none;
}
.contact-card a {
  font-weight: 600;
}
.contact-card .row {
  margin: 4px 0;
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
}
.hours-note {
  color: var(--accent-dark);
  font-size: 0.82rem;
  margin-top: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: #aeb7bf;
  text-align: center;
  padding: 34px 20px;
  font-size: 0.9rem;
}
.site-footer a {
  color: #d7dde3;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .section {
    padding: 52px 0;
  }
  .nav__toggle {
    display: block;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal-2);
    padding: 8px 12px 14px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links a {
    padding: 13px 12px;
  }
  .hero {
    padding: 72px 18px 78px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
