/* F.G. Schaefer Co. — site styles */
:root {
  --maroon: #811617;
  --maroon-dark: #5f1011;
  --navy: #1f2a3a;
  --ink: #333a44;
  --muted: #6b7280;
  --stone: #f4f2ef;
  --line: #e4e1dc;
  --white: #fff;
  --head: "Montserrat", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr, .hidden-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--maroon); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--maroon); color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 26px; border: 2px solid var(--maroon); border-radius: 2px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.07); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 250px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--maroon); border-bottom-color: var(--maroon); }
.site-nav a.nav-cta { background: var(--maroon); color: #fff; padding: 10px 18px; border: 0; border-radius: 2px; }
.site-nav a.nav-cta:hover { background: var(--maroon-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; height: min(78vh, 680px); min-height: 460px; overflow: hidden; background: var(--navy); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(rgba(20,24,32,.25), rgba(20,24,32,.35)), var(--bg) center / cover no-repeat;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-card { background: rgba(255,255,255,.9); max-width: 680px; width: 100%; padding: 44px 48px; text-align: center; border-top: 5px solid var(--maroon); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.slide-card h1, .slide-card h2 { color: var(--maroon); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4em; }
.slide-card p { color: var(--maroon); font-family: var(--head); font-weight: 600; font-size: clamp(14px, 1.6vw, 17px); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 26px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 46px; line-height: 1; width: 52px; height: 72px; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button.is-active { background: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section-title { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; position: relative; padding-bottom: 22px; margin-bottom: 30px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 5px; background: var(--maroon); }
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.14); }

.services { background: var(--stone); }
.service { margin-bottom: 22px; }
.service h3 { font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); margin-bottom: .35em; }
.service p { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease, filter .4s; }
.g-item:hover img { transform: scale(1.06); filter: brightness(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10,12,16,.88); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.18); border: 0; color: #fff; font-size: 44px; width: 50px; height: 70px; cursor: pointer; }
.lb-prev { left: -62px; } .lb-next { right: -62px; }

/* About */
.about-img { position: relative; }
.since { position: absolute; right: -18px; bottom: -18px; background: var(--maroon); color: #fff; width: 130px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--head); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.since span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.since strong { font-size: 36px; font-weight: 800; line-height: 1; }
.lead { font-size: 20px; color: var(--navy); }

/* Manufacturers */
.manufacturers { background: var(--stone); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.logos li { background: #fff; border: 1px solid var(--line); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; transition: box-shadow .2s, transform .2s; }
.logos li:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.logos img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.info-block h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); margin: 26px 0 6px; }
.info-block p { margin: 0 0 6px; }
.call-btn { margin-top: 28px; }
.contact-form { background: var(--stone); padding: 40px; border-top: 5px solid var(--maroon); }
.contact-form h3 { font-size: 24px; margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: 15px; color: var(--navy); margin: 14px 0 6px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #cfcac3; background: #fff; border-radius: 2px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(129,22,23,.15); }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.form-foot small { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #c9ced6; padding: 44px 0; text-align: center; font-size: 15px; }
.footer-inner img { margin: 0 auto 16px; background: #fff; padding: 10px 14px; width: 200px; }
.site-footer p { margin: 4px 0; }
.site-footer .credit { font-size: 13px; color: #8d96a3; }

/* Thank-you page */
.thanks { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.thanks .section-title::after { left: 50%; transform: translateX(-50%); }

/* Responsive */
@media (max-width: 1024px) {
  .logos { grid-template-columns: repeat(6, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { gap: 44px; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { width: 190px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .site-nav a.nav-cta { margin: 14px 24px; text-align: center; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .section { padding: 68px 0; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .since { right: 12px; bottom: -22px; width: 104px; height: 104px; }
  .since strong { font-size: 28px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero { min-height: 520px; }
  .slide-card { padding: 30px 22px; }
  .hero-arrow { display: none; }
  .logos { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .contact-form { padding: 26px 20px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
}
