/*
Theme Name: BECO Industrial
Theme URI: https://www.bohlsbearing.com
Author: Bohls Bearing and Equipment
Description: Custom Bohls homepage theme. Tight spacing, screenshot layout.
Version: 1.0.0
Text Domain: beco-industrial
*/

:root {
  --navy: #123a5c;
  --navy-deep: #0e2f4b;
  --navy-hero: #163e62;
  --orange: #d36b22;
  --orange-hover: #bc5c1b;
  --text: #1c2430;
  --muted: #5b6570;
  --line: #e4e7ea;
  --gray: #f3f4f6;
  --white: #ffffff;
  --max: 1180px;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.35;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 4px 0;
}
.logo img { height: 96px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  color: #3a4450;
}
.nav a:hover { color: var(--navy); }
.nav-drop { position: relative; }
.nav-drop-link::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: 2px;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: 8px 0 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(18, 58, 92, .12);
  z-index: 50;
}
.nav-drop:hover > .nav-menu,
.nav-drop:focus-within > .nav-menu,
.nav-drop.is-open > .nav-menu { display: block; }
.nav-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #3a4450;
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--gray); color: var(--navy); }
.card { scroll-margin-top: 16px; }
a.card { color: inherit; display: block; }
.product-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}
.product-photos figure { margin: 0; width: 180px; }
.product-photos img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
}
.product-photos figcaption {
  margin-top: 6px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}
.product-page h2 { margin: 22px 0 8px; font-size: 26px; font-weight: 700; font-style: normal; color: var(--navy); }
.product-page h3 { margin: 14px 0 4px; font-size: 20px; font-weight: 700; font-style: normal; color: var(--navy); }
.product-kicker {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
}
.product-list { margin: 0 0 14px; padding-left: 22px; }
.product-list li { margin: 4px 0; }
.product-note {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}
.product-note p { margin: 0 0 10px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--navy);
  border-radius: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:hover { background: var(--orange-hover); }
.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,.75);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Hero */
.hero {
  background: var(--navy-hero);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 210px;
  flex: 0 0 auto;
  overflow: hidden;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px 22px 0;
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  max-width: 560px;
}
.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-copy p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(255,255,255,.9);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 10px; }
.hero-photo {
  background: #0b2438 center/cover no-repeat;
  min-height: 210px;
}

/* Intro */
.intro {
  text-align: center;
  padding: 8px 20px 6px;
  flex: 0 0 auto;
}
.intro h2 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.intro p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}

/* What we carry */
.carry {
  background: var(--gray);
  padding: 8px 0 8px;
  flex: 1 1 auto;
}
.carry h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
}
.carry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 12px;
}
.card {
  background: var(--white);
  border-radius: 2px;
  padding: 8px 8px 6px;
  text-align: center;
  min-height: 0;
}
.card-frame {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.card-frame img {
  max-height: 66px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.card span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #2c3540;
  line-height: 1.2;
}
.carry-cta { text-align: center; margin-top: 12px; }

/* Locations */
.locations {
  padding: 8px 0 6px;
  text-align: center;
  flex: 0 0 auto;
}
.locations h2 {
  margin: 0 0 6px;
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
}
.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}
.loc h3 {
  margin: 0 0 2px;
  font-size: 18px;
  color: var(--navy);
}
.loc p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.35;
}
.loc a.phone { color: var(--orange); font-weight: 700; }
.loc a.dir {
  display: inline-block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--orange);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy-hero);
  color: rgba(255,255,255,.82);
  padding: 10px 0 8px;
  flex: 0 0 auto;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 18px;
  align-items: start;
}
.foot-logo {
  display: inline-block;
}
.foot-logo img { height: 88px; width: auto; }
.foot-blurb {
  margin: 8px 0 0;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.35;
  color: rgba(255,255,255,.7);
}
.site-footer h4 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: none;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 3px; }
.site-footer a:hover { color: var(--white); }
.legal {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.page-main { flex: 1 1 auto; padding: 28px 0 40px; }
.page-main h1 { margin: 0 0 12px; color: var(--navy); font-size: 32px; }
.page-main p { max-width: 68ch; color: var(--muted); }

.page-hero {
  background: var(--navy-hero);
  color: var(--white);
  padding: 28px 0;
}
.page-hero h1 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.15;
}
.page-hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255,255,255,.9);
}
.page-section { padding: 22px 0 28px; }
.page-section.alt { background: var(--gray); }
.page-section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--navy);
}
.page-section p {
  margin: 0 0 14px;
  max-width: none;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}
.page-section p a { color: var(--orange); font-weight: 700; }
.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.company-layout h2 a { color: var(--navy); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.detail h2, .detail h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--navy);
}
.detail img.loc-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
}
.detail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.detail a.phone, .detail a.mail {
  color: var(--orange);
  font-weight: 700;
}
.detail a.dir {
  display: inline-block;
  margin-top: 4px;
  color: var(--orange);
  font-weight: 600;
}

@media (min-width: 1400px) and (min-height: 900px) {
  .hero { min-height: 24vh; height: auto; overflow: hidden; }
  .hero-photo { min-height: 0; }
}

@media (min-width: 1400px) and (min-height: 1200px) {
  .hero-copy h1 { font-size: 48px; }
  .logo img { height: 108px; }
  .foot-logo img { height: 96px; }
  .card-frame { height: 88px; }
  .card-frame img { max-height: 84px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; padding: 22px 20px; margin: 0; width: auto; }
  .hero-photo { min-height: 180px; }
  .carry-grid { grid-template-columns: repeat(3, 1fr); }
  .company-layout { grid-template-columns: 1fr; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .loc-grid, .foot-grid, .detail-grid { grid-template-columns: 1fr 1fr; }
  .site-header { position: relative; z-index: 30; }
  .site-header .wrap { position: relative; }
  .logo img { height: 72px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(18, 58, 92, .12);
    padding: 8px 20px 16px;
    z-index: 40;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav .btn {
    margin-top: 12px;
    align-self: stretch;
    text-align: center;
  }
  .nav-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    box-shadow: none;
  }
  .nav-drop.is-open > .nav-menu { display: block; }
  .nav-menu a {
    padding: 8px 0;
    border-bottom: 0;
    white-space: normal;
  }
}

.contact-form {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: 400 18px/1.4 "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.form-note { margin: 0 0 16px; color: var(--navy); font-size: 18px; font-weight: 700; }
.form-note-bad { color: #8a2a1a; }

@media (max-width: 640px) {
  .carry-grid, .loc-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
}
