/* B&J Rubber Products - site styles */
:root {
  --teal: #184b54;
  --teal-deep: #0f3238;
  --aqua: #1fb5c2;
  --aqua-ink: #127a84;
  --aqua-pale: #e2f4f6;
  --amber: #f2a93b;
  --amber-ink: #a35f00;
  --amber-pale: #fdf1dc;
  --charcoal: #20262c;
  --body: #3a444e;
  --muted: #4a5560;
  --line: #d6e2e6;
  --line-soft: #e2e8ec;
  --mist: #f4f9fa;
  --on-dark: #d6e2e6;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--charcoal); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.2; }
p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Utility bar */
.topbar { background: var(--charcoal); color: var(--on-dark); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar-badge { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.04em; }
.topbar-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a.phone { color: #fff; font-weight: 600; }

/* Header */
.site-header { background: #fff; }
.site-header .wrap { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 10px; }
.main-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 4px solid var(--teal); box-shadow: 0 4px 12px rgba(24,75,84,0.10); }
.main-nav .wrap { padding-top: 8px; padding-bottom: 8px; }
.logo-link { display: block; max-width: 100%; text-decoration: none; }
.logo-link img { height: 120px; width: auto; }
.main-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.main-nav a { display: block; padding: 11px 14px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--charcoal); border-radius: 4px; }
.main-nav a:hover { background: var(--mist); color: var(--teal); }
.main-nav a[aria-current="page"] { color: var(--teal); background: var(--aqua-pale); }
.main-nav a.nav-cta { margin-left: 8px; padding: 11px 18px; font-weight: 700; background: var(--amber); color: var(--charcoal); }
.main-nav a.nav-cta:hover { background: #e89a26; }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 4px; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: #e89a26; color: var(--charcoal); }
.btn-outline { border-color: #fff; color: #fff; font-weight: 600; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Hero (mountain banner) */
.hero { color: #fff; border-bottom: 6px solid var(--aqua); background-color: var(--teal);
  background-image: linear-gradient(90deg, rgba(16,52,59,0.94) 0%, rgba(24,75,84,0.86) 45%, rgba(24,75,84,0.5) 100%), url(../images/eastern-sierra-banner.jpg);
  background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
.hero .wrap { padding-top: 56px; padding-bottom: 60px; }
.hero--home .wrap { padding-top: 72px; padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.hero--home .hero-text { gap: 22px; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.15; text-wrap: balance; max-width: 20em; }
.hero--home h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.12; }
.hero h1 .accent { color: var(--amber); }
.hero .lead { font-size: 18px; color: var(--on-dark); max-width: 40em; }
.hero--home .lead { font-size: 19px; max-width: 34em; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--amber); }
.badge { align-self: flex-start; border: 2px solid var(--amber); border-radius: 4px; padding: 6px 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.photo-frame { display: flex; flex-direction: column; gap: 10px; }
.photo-frame .frame { border-radius: 8px; overflow: hidden; background: #eef2f5; border: 3px solid var(--aqua); }
.photo-frame figcaption { font-size: 14px; color: var(--muted); }
.hero .photo-frame figcaption { color: var(--on-dark); }
.hero .photo-frame figcaption strong { color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .wrap { display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 10px; border-bottom: 3px solid var(--aqua); padding-bottom: 14px; }
.section-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--amber-ink); }
.title { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--teal); }
.title--sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.intro { color: var(--body); font-size: 17px; max-width: 46em; }
.note { font-size: 14px; color: var(--muted); }

/* Stats strip */
.stats { background: var(--mist); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stat-value { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--teal); }
.stat-label { font-size: 15px; color: var(--body); }

/* Grids and cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 28px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: start; }
.cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.cols--tight { gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--aqua { border-top-color: var(--aqua); }
.card--amber { border-top-color: var(--amber); }
.card--warm { border-top-color: var(--amber); background: var(--amber-pale); }
.card h2, .card h3 { font-size: 24px; color: var(--teal); }
.card--warm h2 { color: var(--charcoal); }
.card h3.card-title-lg { font-size: 30px; }
.card p, .card li { color: var(--body); }
.card ul.bullets { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.card .icon { width: 34px; height: 34px; stroke: var(--teal); }
.card--warm .icon { stroke: var(--amber-ink); }
a.card { text-decoration: none; color: var(--charcoal); }
a.card:hover { box-shadow: 0 6px 18px rgba(24,75,84,0.12); }
.card .more { font-weight: 700; color: var(--teal); margin-top: auto; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.card-head p { font-size: 16px; }

.list-label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--amber-ink); border-bottom: 2px solid var(--aqua); padding-bottom: 6px; }
.list-label + ul + .list-label { margin-top: 12px; }
.spec-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); }
.spec-list b { color: var(--charcoal); }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* Photo cards (teal overlay over a photo) */
.photo-card { color: #fff; background-color: var(--teal); background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 8px; border-bottom: 4px solid var(--aqua); }
.photo-card .card-eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #9fe0e6; font-weight: 700; }
.photo-card h3 { font-size: 28px; color: #fff; }
.photo-card p { color: var(--on-dark); }
.photo-card p strong { color: #fff; }
.photo-card .featured { margin-top: 6px; padding-top: 12px; border-top: 1px solid #336470; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #fff; }
.photo-card .featured .name { font-weight: 700; color: var(--amber); }
.photo-card .featured .spec { font-weight: 700; }
.photo-card--foam { background-image: linear-gradient(180deg, rgba(24,75,84,0.84), rgba(20,64,72,0.93)), url(../images/bisco-bf1000-silicone-foam.jpg); }
.photo-card--sponge { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(20,64,72,0.94)), url(../images/silicone-sponge-rolls.jpg); }
.photo-card--solid { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(20,64,72,0.94)), url(../images/solid-silicone-rolls.jpg); }

/* Capability tiles on photo backgrounds */
.card.tile-photo { background-color: var(--teal); background-size: cover; background-position: center; background-repeat: no-repeat; border-color: var(--teal); border-top-color: var(--aqua); }
.card.tile-photo h2 { color: #fff; }
.card.tile-photo p, .card.tile-photo li { color: #e2edf0; }
.card.tile-photo .icon { stroke: #9fe0e6; }
.tile-waterjet { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(16,52,59,0.94)), url(../images/flow-mach-100-waterjet.jpg); }
.tile-die { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(16,52,59,0.94)), url(../images/clicker-press-die-cutting.jpg); }
.tile-adhesive { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(16,52,59,0.94)), url(../images/adhesive-rolls.jpg); }
.tile-laminate { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(16,52,59,0.94)), url(../images/laminated-foam-parts.jpg); }
.tile-slit { background-image: linear-gradient(180deg, rgba(24,75,84,0.86), rgba(16,52,59,0.94)), url(../images/lever-tape-slitter.jpg); }

/* Dark panel (Rogers lines on home) */
.panel { background: var(--teal); color: #fff; border-radius: 8px; border-bottom: 5px solid var(--aqua); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.panel .panel-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.brand-grid li { background: var(--aqua-pale); border: 1.5px solid var(--aqua); border-radius: 5px; padding: 12px; font-weight: 700; font-size: 17px; color: var(--teal); text-align: center; }
.panel a { color: #fff; font-weight: 600; align-self: flex-start; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 17px; color: var(--body); }

/* Industries */
.industries { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.industries li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 20px; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; font-weight: 600; color: var(--teal); }
.industries li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--aqua); }

.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.market { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.market h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--teal); }
.market p { color: var(--body); font-size: 15px; }
.market--core { grid-column: 1 / -1; background: var(--teal); color: #fff; border: 0; border-bottom: 4px solid var(--aqua); padding: 28px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.market--core h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: #fff; }
.market--core p { color: var(--on-dark); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li { padding: 7px 12px; border: 1.5px solid #9fe0e6; border-radius: 4px; font-weight: 700; }

/* Callouts */
.callout { background: var(--amber-pale); border-radius: 6px; padding: 18px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.callout .btn { padding: 12px 20px; }
.callout--list { justify-content: flex-start; gap: 10px 24px; }
.callout--list ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table--specs { min-width: 640px; }
.data-table--materials { min-width: 760px; font-size: 15px; }
.data-table thead th { background: var(--teal); color: #fff; text-align: left; padding: 13px 18px; font-weight: 700; }
.data-table td, .data-table tbody th { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody th { color: var(--teal); }
.data-table .group { background: #e8f4f5; }
.data-table .group.alt { background: var(--mist); }
.data-table .code { font-weight: 700; color: var(--teal); }
.data-table .nowrap { white-space: nowrap; }
.data-table--materials td { color: var(--body); }
.data-table--materials tbody tr:nth-child(even) { background: var(--mist); }
.kv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv-table th, .kv-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }
.kv-table tr:nth-child(even) { background: var(--mist); }
.kv-table th { width: 42%; color: var(--muted); font-weight: 600; }
.kv-table td { font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.steps li:last-child .step-num { background: var(--amber); color: var(--charcoal); }
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; color: var(--teal); }
.steps p { color: var(--body); }

/* CTA band */
.cta { padding: 0 0 80px; }
.cta--spaced { padding-top: 80px; }
.cta-box { background: var(--charcoal); color: #fff; border-radius: 8px; border-top: 5px solid var(--aqua); padding: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; }
.cta-sub { font-size: 16px; color: #c9d3df; margin-top: 8px; }
.cta-sub a { color: #fff; }
.cta-sub a.phone { color: var(--amber); font-weight: 700; text-decoration: none; }

/* Contact */
.contact-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 72px; padding-bottom: 88px; }
.quote-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 6px; padding: 32px; }
.quote-form h2 { font-size: 26px; color: var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { font: inherit; border: 1.5px solid #95a3b7; border-radius: 4px; padding: 0 12px; height: 46px; width: 100%; background: #fff; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input[type="file"] { height: auto; padding: 12px; border-style: dashed; background: var(--mist); }
.field .hint { font-size: 14px; color: var(--muted); }
.quote-form button { align-self: flex-start; min-height: 48px; padding: 0 28px; border: 0; }
.quote-form button:disabled { opacity: 0.65; cursor: wait; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; border: 2px solid var(--teal); border-radius: 4px; background: var(--mist); overflow-wrap: anywhere; }
.form-status[data-state="error"] { border-color: #9b2424; color: #7a1c1c; background: #fff5f5; }
.contact-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--teal); color: #fff; border-bottom: 5px solid var(--aqua); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 18px; font-style: normal; }
.contact-card .label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #9fe0e6; }
.contact-card .row { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.contact-card a { color: #fff; }
.contact-card a.big-phone { color: var(--amber); font-size: 24px; font-weight: 700; text-decoration: none; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; }
.hours-note { font-size: 14px; color: var(--on-dark); }
.location-card { display: block; text-decoration: none; color: var(--charcoal); border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.location-card:hover { box-shadow: 0 6px 18px rgba(24,75,84,0.15); }
.location-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.location-meta strong { color: var(--teal); display: block; }
.location-meta span { font-size: 14px; color: var(--muted); }
.location-meta .go { font-weight: 700; font-size: 15px; color: var(--teal); white-space: nowrap; }

/* Footer */
.site-footer { background: var(--teal); color: var(--on-dark); border-top: 5px solid var(--aqua); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--serif); font-size: 22px; color: #fff; }
.footer-col .accent { color: var(--amber); font-weight: 600; }
.footer-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #9fe0e6; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid #336470; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #c9d3df; }

@media (max-width: 600px) {
  .logo-link img { height: auto; }
    .main-nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .main-nav li { flex: none; }
  .main-nav a { padding: 10px 10px; font-size: 14px; }
  .main-nav a.nav-cta { margin-left: 4px; }
  .section { padding: 56px 0; }
  .cta-box, .panel, .quote-form { padding: 24px; }
  .hero .wrap, .hero--home .wrap { padding-top: 44px; padding-bottom: 48px; }
}
.hours { font-size: 16px; }
.hours span:nth-child(even) { white-space: nowrap; }

.hero .statement { font-family: 'Libre Caslon Text', Georgia, serif; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.18; font-weight: 400; color: #fff; max-width: 22em; text-wrap: balance; }
.hero--home h1 { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 600; }
.hero .statement span { color: var(--amber); }

html { scroll-padding-top: 80px; }
