/* Weller Industries: matches the look of the old GoDaddy site. No JavaScript. */
@font-face { font-family: "Roboto"; src: url(/fonts/roboto-latin-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #000;
  --text: #1b1b1b;
  --muted: #5e5e5e;
  --line: #e2e2e2;
  --band: #f5f5f5;
  --footer: #161616;
  --wrap: 1112px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 "Roboto", Arial, sans-serif; color: var(--muted); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, .title, .slide-title { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; color: var(--ink); line-height: 1.25; margin: 0; }
h3, .h3 { font: 400 22px/1.3 "Roboto", Arial, sans-serif; color: var(--text); margin: 0 0 12px; }
p { margin: 0 0 16px; }
a { color: var(--text); }
a.plain { text-decoration: none; color: var(--text); }
a.plain:hover { text-decoration: underline; }
.big { font-size: 20px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.visually-hidden { 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: #000; color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; background: #000; color: #fff; border: 2px solid #000; border-radius: 4px; padding: 14px 30px;
  font: 700 14px/1.2 "Roboto", Arial, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; }
.btn:hover, .btn:focus-visible { background: #303030; border-color: #303030; }
.btn-outline { background: transparent; color: #000; }
.btn-outline:hover, .btn-outline:focus-visible { background: #000; color: #fff; }
.btn-small { padding: 10px 18px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row.center { justify-content: center; }

/* Section titles with the short rule underneath */
.title { font-size: 44px; text-align: center; }
.title::after { content: ""; display: block; width: 50px; height: 2px; background: var(--line); margin: 28px auto 40px; }
.title-left { text-align: left; }
.title-left::after { margin-left: 0; }
.section { padding: 56px 0 64px; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 5; }
.header-inner { max-width: none; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 8px 48px; }
.logo img { height: 42px; width: auto; }
.nav-wide { display: flex; gap: 32px; }
.nav-wide a, .menu nav a { font: 400 14px/1 "Roboto", Arial, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text); text-decoration: none; }
.nav-wide a:hover, .menu nav a:hover { text-decoration: underline; }
.nav-wide a[aria-current], .menu nav a[aria-current] { font-weight: 700; color: #000; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; background: #000; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.menu nav a { padding: 18px 24px; border-bottom: 1px solid var(--line); }

/* Home: hero slideshow (pure CSS crossfade) */
.hero-slides { position: relative; height: 580px; overflow: hidden; background: #ccc; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center;
  text-align: center; opacity: 0; visibility: hidden; animation: slide 18s infinite; }
.slide-1 { background-image: url(/img/img-20231115-094950.jpg); }
.slide-2 { background-image: url(/img/cnc-1.jpg); animation-delay: 6s; }
.slide-3 { background-image: url(/img/laser-1.jpg); animation-delay: 12s; }
.slide-text h1, .slide-title { font-size: 60px; margin: 0 24px 100px; }
.slide-2 .slide-title, .slide-3 .slide-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.slide-2::before, .slide-3::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.slide-text { position: relative; }
@keyframes slide {
  0% { opacity: 0; visibility: visible; }
  4%, 33% { opacity: 1; visibility: visible; }
  38% { opacity: 0; visibility: visible; }
  39%, 100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .slide-1 { opacity: 1; visibility: visible; }
}

/* Home: cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 28px; }
.card h3 { margin-bottom: 24px; }
.card p { font-size: 16px; padding: 0 8px; margin-bottom: 28px; }

/* Home: contact */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--band); }
.contact-info { padding: 64px 48px 64px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.contact-info h2 { font-size: 44px; }
.contact-side { background: #e8e9ec; padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.hours { border-collapse: collapse; margin: 0 0 24px; color: var(--muted); width: auto; align-self: flex-start; }
.hours th { text-align: left; font-weight: 400; padding: 2px 12px 2px 0; }
.hours td { padding: 2px 0; text-align: left; }
.center .hours { margin: 0 auto 24px; }

/* About / design services */
.wide-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.banner-crop { object-position: center 55%; margin-bottom: 56px; }
.subhead { font: 400 22px/1.3 "Roboto", Arial, sans-serif; color: var(--text); text-align: center; margin: 24px 0; }
.lead { font-size: 20px; text-align: center; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }

/* IGBT banner */
.banner { min-height: 200px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; position: relative; }
.banner-igbt { background-image: url(/img/img-20231116-114956.jpg); }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.banner h1 { position: relative; color: #fff; font-size: 44px; padding: 0 24px; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Split text / image */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-text { padding: 64px 64px 64px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.split-text h1, .split-text h2 { font-size: 44px; }
.split-img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.features { list-style: none; padding: 0; margin: 0; }
.features li { margin: 0 0 4px; }
.features strong { color: #303030; }
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.info-cols > div { text-align: center; }

/* Machining gallery */
.gallery-band { background: var(--band); padding: 56px 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

/* Footer */
.site-footer { background: var(--footer); color: #a4a4a4; text-align: center; padding: 56px 24px 64px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 40px; }
.site-footer nav a { color: #f7f7f7; text-decoration: none; text-transform: uppercase; letter-spacing: 1.2px; font-size: 14px; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact a { color: #a4a4a4; text-decoration: none; font-size: 16px; margin: 0 2px; }
.copyright { font-size: 14px; margin: 0; }

/* Laptop and smaller */
@media (max-width: 1100px) {
  .header-inner { padding: 8px 24px; }
  .nav-wide { gap: 20px; }
}
/* Tablet and phone */
@media (max-width: 900px) {
  .nav-wide { display: none; }
  .menu { display: block; }
  .logo img { height: 32px; }
  .header-inner { min-height: 60px; }
  .title, .contact-info h2, .split-text h1, .split-text h2, .banner h1 { font-size: 32px; }
  .title::after { margin: 20px auto 28px; }
  .title-left::after { margin-left: 0; }
  .slide-text h1, .slide-title { font-size: 36px; margin-bottom: 60px; }
  .hero-slides { height: 440px; }
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .card img { aspect-ratio: 16 / 9; }
  .contact-split, .split, .two-col, .info-cols { grid-template-columns: 1fr; }
  .contact-info, .contact-side, .split-text { padding: 48px 24px; }
  .split-img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wide-img { aspect-ratio: 4 / 3; }
  .lead { font-size: 18px; }
  .section { padding: 40px 0 48px; }
}
