/* custombinders.com: original stylesheet. Design tokens match the 2022 site (see CLAUDE.md). */

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --charcoal: #373a36;
  --text: #555;
  --text-strong: #282828;
  --accent: #97262c;
  --accent-dark: #7d1f24;
  --muted: #aaa;
  --muted-2: #666; /* breadcrumb and meta; darkened from #a3a3a3 for contrast */
  --nav-on-dark: #d1d1d1;
  --surface: #eee;
  --rule: #ccc;
  --white: #fff;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --gutter: 30px;
  --header-h: 96px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, h4 { color: var(--charcoal); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.site-header--light :focus-visible { outline-color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

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

.btn {
  display: inline-block;
  background: var(--charcoal);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: background-color .15s;
}
.btn:hover { background: #222; text-decoration: none; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--block { display: block; width: 100%; max-width: 360px; font-size: 17px; font-weight: 400; padding: 14px; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal);
  padding: 17px 0;
}
.site-header--light { background: var(--surface); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; padding: 0 36px;
}
.site-header__logo { margin-left: 15px; }
.site-header__logo img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; }
.site-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.site-nav__list a {
  display: block; padding: 16px; font-size: 18px; line-height: 18px;
  color: var(--nav-on-dark);
}
.site-nav__list a:hover, .site-nav__list a[aria-current] { color: #fff; text-decoration: none; }
.site-header--light .site-nav__list a { color: var(--charcoal); }
.site-header--light .site-nav__list a:hover,
.site-header--light .site-nav__list a[aria-current] { color: #000; }
.site-header__actions { display: flex; align-items: center; margin-left: auto; }
.site-header__phone { color: var(--nav-on-dark); font-size: 20px; font-weight: 600; line-height: 1; padding: 16px; }
.site-header__phone:hover { color: #fff; text-decoration: none; }
.site-header--light .site-header__phone { color: var(--charcoal); }
.site-header__actions .btn { font-size: 18px; line-height: 18px; padding: 16px; border-radius: 3px; }

.nav-toggle { display: none; -webkit-tap-highlight-color: transparent; }

@media (max-width: 1024px) {
  .site-header { padding: 10px 0; }
  .site-header__inner { padding: 0 var(--gutter); min-height: 56px; flex-wrap: wrap; }
  .js .nav-toggle {
    display: block; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: #fff;
  }
  .site-header--light .nav-toggle { color: var(--charcoal); }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto;
    position: relative; transition: transform .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; margin: 0; position: static; transform: none; }
  .site-header__logo { margin-left: 0; }
  .site-nav__list a { padding: 12px 0; }
  .site-header__actions { flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 0 0; }
  .site-header__phone { padding: 8px 0; }
}

/* Footer */
.site-footer { background: var(--charcoal); color: var(--muted); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px;
  padding: 30px 36px; min-height: 91px;
}
.site-footer__nav { list-style: none; padding: 0; display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer__copy { margin: 0; }
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; padding: 24px var(--gutter); }
  .site-footer__nav { flex-direction: column; gap: 4px; }
  .site-footer__copy { margin-top: 4px; }
  .product-meta { flex-direction: column; text-align: left; align-items: flex-start; }
}

/* Generic page */
.page { padding-top: 29px; padding-bottom: 60px; }
.page--wide { max-width: none; padding-left: 51px; padding-right: 51px; }
.page--wide .product-grid { gap: 50px 24px; }
.page-title { font-size: 40px; text-align: center; margin: 0 0 50px; }
.page-title--light { font-weight: 400; }

/* Home: hero */
.hero { background: var(--surface); }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px;
  min-height: 584px; padding-top: 4px; padding-bottom: 40px;
}
.hero__text { padding: 110px 0 0 30px; }
.hero__title { font-size: 42px; line-height: 45px; font-weight: 600; max-width: 540px; margin-bottom: 50px; }
.hero__image img { width: 100%; max-width: 540px; margin: 0 auto; }

/* Home: value blocks */
.values { padding-top: 50px; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 50px; }
.value { text-align: center; }
.value__icon { width: 36px; height: 36px; margin: 0 auto 12px; fill: #333; }
.value__icon--bug { width: 41px; height: 36px; }
.value__title { font-size: 24px; line-height: 1.4; margin-bottom: 12px; }
.value p { font-size: 18px; line-height: 24px; font-weight: 500; margin: 0; }
.value p a { color: var(--accent); }

/* Section titles */
.section-title { font-size: 42px; font-weight: 700; line-height: 1.25; }
.section-title__sub { font-size: 24px; font-weight: 500; color: var(--text-strong); margin-left: 8px; }

/* Home: products */
.home-products { padding-top: 75px; padding-bottom: 40px; }
.home-products__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }

/* Product grid */
.product-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 20px;
}
.product-card a { display: block; color: inherit; }
.product-card a:hover { text-decoration: none; }
.product-card__img { background: var(--surface); aspect-ratio: 1; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.product-card a:hover img { opacity: .85; }
.product-card__title {
  font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text);
  padding: 12px 0 10px; border-bottom: 1px solid var(--surface);
}
.product-card a:hover .product-card__title { color: var(--accent); }

/* Home: SEO copy */
.seo-copy { padding-top: 50px; padding-bottom: 60px; }
.seo-copy .section-title { margin-bottom: 24px; }
.seo-copy p { font-size: 18px; line-height: 36px; margin-bottom: 24px; }
.seo-copy a[href^="tel:"] { text-decoration: underline; }

/* Product page */
.product-top { background: var(--surface); padding: 20px 0 55px; }
.product-top > .container { max-width: none; padding: 0 51px; }
.product-top__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 46px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; color: var(--muted-2); }
.breadcrumb li + li::before { content: "/"; padding: 0 7px; }
.breadcrumb a { color: var(--charcoal); }
.product-pager { display: flex; gap: 6px; font-size: 10px; }
.product-pager a { color: var(--muted-2); display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
.product-pager a:hover { color: var(--charcoal); text-decoration: none; }

.product-top__grid { display: grid; grid-template-columns: minmax(0, 766px) minmax(0, 361px); gap: clamp(40px, 7.6vw, 110px); align-items: start; }
.gallery { display: grid; grid-template-columns: 60px minmax(0, 664px); gap: 42px; }
.gallery__main { grid-column: 2; grid-row: 1; position: relative; }
.gallery__slide { display: block; cursor: zoom-in; }
.gallery__slide[hidden] { display: none; }
.gallery__zoom { position: absolute; top: 0; right: 0; width: 24px; height: 24px; color: var(--charcoal); pointer-events: none; }
.gallery__thumbs { grid-column: 1; grid-row: 1; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 17px; max-height: 664px; overflow-y: auto; scrollbar-width: thin; }
.gallery__thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; opacity: .6; transition: opacity .15s; }
.gallery__thumb:hover, .gallery__thumb[aria-current="true"] { opacity: 1; }

.product-summary { padding-top: 0; }
.product-summary__title { font-size: 32px; line-height: 1.2; padding-bottom: 24px; }
.product-summary__tagline { font-size: 17px; color: var(--charcoal); }
.product-summary p { font-size: 17px; line-height: 1.8; }
.product-summary .btn { margin-top: 10px; }

.product-details { border-top: 1px solid var(--surface); }
.product-details__tab {
  width: max-content; margin: 19px auto 0; padding-bottom: 0;
  font-size: 20px; line-height: 40px; font-weight: 400; color: var(--charcoal);
  border-bottom: 2px solid #ccc;
}
.product-details__body { max-width: 1134px; font-size: 17px; line-height: 30.6px; padding-top: 41px; }
.product-details__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-top: 10px; padding-bottom: 53px; }
.product-details__lists h3 { font-size: 22px; line-height: 1; margin-bottom: 14px; }
.product-details__lists ul { padding-left: 40px; }
.product-meta {
  border-top: 1px solid var(--surface); margin: 0; padding: 14px var(--gutter);
  text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 20px; padding-top: 20px; padding-bottom: 18px;
  color: var(--charcoal);
}
.product-meta__val { color: var(--muted-2); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(255, 255, 255, .97);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .4); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 90vw; max-height: 90vh; width: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: var(--charcoal); font-size: 44px; line-height: 1; padding: 10px 16px;
}
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Information */
.page--info { padding-top: 80px; }
.page--info .page-title { font-size: 42px; margin-bottom: 105px; }
.info-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 699px); gap: 30px; align-items: center; max-width: 1012px; margin: 0 auto; padding: 0 0 55px; }
.info-row + .rule { margin-bottom: 63px; }
.info-row__label { font-size: 32px; color: var(--text-strong); }
.info-row__body p { font-size: 20px; line-height: 32px; margin: 0; }
.info-row__body img { width: 627px; margin: 0 auto; }

/* Contact */
.page--contact { padding-top: 52px; }
.page--contact .page-title { font-size: 50px; line-height: 1; font-weight: 400; margin-bottom: 54px; color: var(--text-strong); }
.contact { display: grid; grid-template-columns: minmax(0, 387px) minmax(0, 589px); gap: 30px; max-width: 1012px; margin: 0 auto; }
.contact__info p { font-size: 20px; line-height: 40px; font-weight: 500; margin-bottom: 24px; }
.contact__info a { color: #262626; }
.contact__form iframe { display: block; width: 100%; height: 800px; border: 0; }

/* 404 */
.page--404 { text-align: center; min-height: 50vh; }
.page--404__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 30px 0; }

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner { min-height: 0; }
  .hero__text { padding: 40px 0 0; }
  .hero__title { font-size: 36px; line-height: 1.2; }
  .values__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-top__grid { grid-template-columns: 1fr; gap: 30px; }
  .product-top > .container { padding: 0 var(--gutter); }
  .gallery { grid-template-columns: 60px minmax(0, 1fr); }
  .page--wide { padding-left: var(--gutter); padding-right: var(--gutter); }
  .info-row__body img { width: 100%; }
}

/* Mobile */
@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
  .hero__title { font-size: 42px; line-height: 45px; margin-bottom: 26px; }
  .values__grid { grid-template-columns: 1fr; gap: 30px; }
  .section-title { font-size: 36px; line-height: 1.15; }
  .section-title__sub { display: block; margin: 12px 0 0; font-size: 22px; }
  .home-products { padding-top: 40px; }
  .home-products__head { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .product-card__title { font-size: 17px; }
  .seo-copy p { line-height: 36px; }
  .page-title { font-size: 30px; margin-bottom: 30px; }
  .product-top { background: none; padding-top: 0; padding-bottom: 30px; }
  .product-top__bar { margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: var(--surface); }
  .gallery { grid-template-columns: 1fr; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 16px; background: var(--surface); }
  .gallery__main { grid-column: 1; }
  .gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; max-height: none; }
  .gallery__thumbs li { flex: 0 0 64px; }
  .product-details__lists { grid-template-columns: 1fr; }
  .product-details__tab { margin-left: var(--gutter); }
  .info-row, .contact { grid-template-columns: 1fr; gap: 20px; }
  .contact__form iframe { height: 900px; }
}
