/*
Theme Name: IPC Industry Products
Theme URI: https://www.industryproductsco.com/
Author: Industry Products Co.
Description: A self-contained recreation of the 2022 Industry Products Co. website, prepared for Bluehost WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ipc-industry-products
*/

:root {
  --ipc-blue: #4982cf;
  --ipc-blue-bright: #3e8ede;
  --ipc-blue-dark: #245b9e;
  --ipc-ink: #191919;
  --ipc-text: #5e5e5e;
  --ipc-light: #f4f7fb;
  --ipc-gray: #adadad;
  --ipc-white: #ffffff;
  --ipc-border: #e4e8ef;
  --ipc-shadow: 0 16px 45px rgba(20, 44, 74, .12);
  --ipc-container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ipc-ink);
  background: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ipc-blue); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover, a:focus { color: var(--ipc-blue-dark); }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px;
  background: #fff; color: #000; z-index: 10000;
}
.ipc-container { width: min(calc(100% - 40px), var(--ipc-container)); margin-inline: auto; }
.ipc-section { padding: 78px 0; }
.ipc-section--light { background: var(--ipc-light); }
.ipc-section--blue { background: var(--ipc-blue); color: #fff; }
.ipc-section--blue p { color: rgba(255,255,255,.9); }
.ipc-eyebrow {
  margin: 0 0 10px; color: var(--ipc-blue); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.ipc-section--blue .ipc-eyebrow { color: #fff; }
.ipc-title, h1, h2, h3, h4 {
  font-family: Raleway, Arial, Helvetica, sans-serif;
  line-height: 1.18;
}
.ipc-title { margin: 0 0 25px; font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; }
.ipc-lead { max-width: 820px; margin: 0 auto; color: var(--ipc-text); font-size: 19px; line-height: 1.75; }
.ipc-center { text-align: center; }
.ipc-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border: 2px solid var(--ipc-blue);
  border-radius: 999px; background: var(--ipc-blue); color: #fff;
  font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.ipc-button:hover, .ipc-button:focus { background: var(--ipc-blue-dark); border-color: var(--ipc-blue-dark); color: #fff; }
.ipc-button--ghost { background: transparent; border-color: #fff; color: #fff; }
.ipc-button--ghost:hover { background: #fff; color: var(--ipc-blue-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding img { width: 194px; max-height: 84px; object-fit: contain; }
.site-branding .custom-logo { width: 194px; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; }
.primary-navigation > div > ul { display: flex; align-items: center; gap: 27px; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; padding: 38px 0; color: #000; font-size: 14px; white-space: nowrap; }
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation a:hover { color: var(--ipc-blue-bright); }
.primary-navigation .sub-menu {
  position: absolute; left: -18px; top: calc(100% - 1px); min-width: 265px;
  padding: 8px 0; background: #fff; box-shadow: var(--ipc-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-navigation .sub-menu a { padding: 10px 18px; border-bottom: 1px solid var(--ipc-border); }
.menu-toggle {
  display: none; width: 48px; height: 44px; border: 0; background: transparent; color: var(--ipc-ink); cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 28px; height: 2px; margin: 6px auto; background: currentColor;
}

/* Shared page hero */
.page-hero {
  position: relative; min-height: 330px; display: grid; place-items: center;
  background: #274768 center/cover no-repeat; color: #fff; text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(17,34,54,.58); }
.page-hero .ipc-container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 70px); font-weight: 700; }
.page-hero p { max-width: 720px; margin: 14px auto 0; color: #fff; font-size: 18px; }

/* Home */
.home-hero { position: relative; height: min(790px, calc(100vh - 100px)); min-height: 570px; overflow: hidden; color: #fff; }
.home-slide {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s ease;
}
.home-slide.is-active { opacity: 1; transform: scale(1); }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,30,.75), rgba(8,18,30,.3)); }
.home-hero__content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; max-width: 850px;
}
.home-hero__content h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.home-hero__content h1 { margin: 0 0 18px; font-size: clamp(48px, 7.3vw, 92px); letter-spacing: -.035em; }
.home-hero__content p { max-width: 760px; margin: 0 0 30px; color: #fff; font-size: clamp(17px, 2vw, 23px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; border-radius: 4px; background: #274768 center/cover no-repeat; color: #fff; box-shadow: var(--ipc-shadow);
}
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,25,44,.88), rgba(9,25,44,.05)); }
.feature-card__body { position: relative; padding: 30px; }
.feature-card h2 { margin: 0 0 10px; font-size: 28px; }
.feature-card p { margin: 0; color: rgba(255,255,255,.9); }
.serve-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 65px; }
.serve-collage { position: relative; min-height: 540px; }
.serve-collage img { position: absolute; object-fit: cover; box-shadow: var(--ipc-shadow); }
.serve-collage img:first-child { inset: 0 18% 13% 0; width: 82%; height: 87%; }
.serve-collage img:last-child { right: 0; bottom: 0; width: 52%; height: 47%; border: 8px solid #fff; }
.serve-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 4.5vw, 54px); }
.serve-copy h3 { margin: 0 0 20px; color: var(--ipc-blue); font-size: 25px; font-weight: 500; }
.serve-copy p { color: var(--ipc-text); font-size: 17px; }
.personal-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.personal-banner h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); }
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 25px; margin-top: 45px; }
.cert-grid img { width: 100%; max-height: 105px; object-fit: contain; filter: grayscale(15%); }

/* Content layouts */
.content-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; }
.content-split--top { align-items: start; }
.content-split h2 { margin: 0 0 24px; font-size: 42px; }
.content-split p { color: var(--ipc-text); }
.content-split img { width: 100%; min-height: 390px; object-fit: cover; box-shadow: var(--ipc-shadow); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 42px; }
.value-card { background: #fff; border: 1px solid var(--ipc-border); box-shadow: 0 8px 25px rgba(20,44,74,.07); }
.value-card img { width: 100%; height: 220px; object-fit: cover; }
.value-card__body { padding: 28px; }
.value-card h3 { margin: 0 0 12px; color: var(--ipc-blue); font-size: 23px; }
.value-card p { margin: 0; color: var(--ipc-text); }

/* Products */
.product-layout { display: grid; grid-template-columns: 270px 1fr; gap: 55px; align-items: start; }
.product-nav { position: sticky; top: 125px; padding: 0; list-style: none; }
.product-nav a { display: block; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.32); background: #7f7f7f; color: #fff; }
.product-nav a:hover { background: var(--ipc-blue); }
.product-intro { color: var(--ipc-text); font-size: 18px; }
.product-section { padding: 72px 0; scroll-margin-top: 115px; }
.product-section:nth-child(even) { background: var(--ipc-light); }
.product-section__grid { display: grid; grid-template-columns: 220px 1fr; gap: 45px; align-items: start; }
.product-section__grid img { width: 220px; height: 205px; object-fit: cover; border-radius: 50%; box-shadow: var(--ipc-shadow); }
.product-section h2 { margin: 0 0 18px; font-size: 38px; }
.product-section p, .product-section li { color: var(--ipc-text); }
.product-section ul { padding-left: 20px; }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; padding: 0; list-style: none; }
.process-grid li { padding: 13px 16px; border-left: 4px solid var(--ipc-blue); background: #fff; box-shadow: 0 3px 12px rgba(20,44,74,.06); }

/* Supplier */
.supplier-statement { max-width: 900px; margin: 0 auto; text-align: center; font-size: 21px; color: var(--ipc-text); }
.supplier-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 45px; }
.supplier-link { padding: 28px; border: 1px solid var(--ipc-border); background: #fff; text-align: center; box-shadow: var(--ipc-shadow); }
.supplier-link h3 { margin: 0 0 10px; color: var(--ipc-blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-copy h2 { margin: 0 0 18px; font-size: 43px; }
.contact-copy p { color: var(--ipc-text); font-size: 17px; }
.ipc-form { padding: 34px; border: 1px solid var(--ipc-border); background: #fff; box-shadow: var(--ipc-shadow); }
.ipc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ipc-field--full { grid-column: 1 / -1; }
.ipc-form label { display: block; margin-bottom: 7px; color: #555; font-weight: 700; }
.ipc-form input, .ipc-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #e4e2f9; background: rgba(238,237,246,.33); color: #222;
}
.ipc-form input { height: 50px; }
.ipc-form textarea { min-height: 150px; resize: vertical; }
.ipc-alert { margin-bottom: 22px; padding: 13px 16px; border-radius: 3px; }
.ipc-alert--success { background: #e4f6e9; color: #17682e; }
.ipc-alert--error { background: #fff0f0; color: #982323; }
.ipc-honeypot { position: absolute; left: -9999px; }
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.location-card { overflow: hidden; border: 1px solid var(--ipc-border); background: #fff; box-shadow: var(--ipc-shadow); }
.location-card img { width: 100%; height: 180px; object-fit: cover; }
.location-card__body { padding: 26px; }
.location-card h3 { margin: 0 0 18px; font-size: 23px; }
.location-details { display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; }
.location-details strong { color: var(--ipc-blue-dark); }

/* Generic content */
.entry-content { max-width: 900px; margin: 0 auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { height: auto; }

/* Footer */
.main-footer { padding: 65px 0 0; background: var(--ipc-gray); color: var(--ipc-ink); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .75fr .9fr; gap: 65px; }
.main-footer h4 { margin: 0 0 20px; font-size: 20px; }
.main-footer p { color: var(--ipc-ink); }
.footer-about img { width: 175px; margin-bottom: 18px; }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-menu li { margin-bottom: 7px; }
.main-footer a { color: var(--ipc-ink); }
.main-footer a:hover { color: #fff; }
.bottom-band { margin-top: 50px; padding: 24px 0; border-top: 1px solid rgba(25,25,25,.22); font-size: 13px; text-align: center; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 82px; }
  .menu-toggle { display: block; }
  .primary-navigation {
    position: absolute; inset: 82px 0 auto; max-height: calc(100vh - 82px);
    overflow: auto; padding: 0 20px 18px; background: #fff; box-shadow: var(--ipc-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
  }
  .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-navigation > div > ul { display: block; }
  .primary-navigation a { padding: 12px 8px; border-bottom: 1px solid var(--ipc-border); }
  .primary-navigation .sub-menu {
    position: static; display: block; min-width: 0; padding: 0 0 0 15px; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .feature-grid, .value-grid { grid-template-columns: 1fr; }
  .serve-grid, .content-split, .contact-grid { grid-template-columns: 1fr; }
  .serve-copy { order: -1; }
  .product-layout { grid-template-columns: 1fr; }
  .product-nav { position: static; columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .ipc-container { width: min(calc(100% - 28px), var(--ipc-container)); }
  .ipc-section { padding: 58px 0; }
  .site-branding img, .site-branding .custom-logo { width: 160px; }
  .home-hero { min-height: 530px; }
  .home-hero__content h1 { font-size: 46px; }
  .page-hero { min-height: 260px; }
  .page-hero h1 { font-size: 43px; }
  .personal-banner { display: block; text-align: center; }
  .personal-banner .ipc-button { margin-top: 25px; }
  .serve-collage { min-height: 410px; }
  .value-card img { height: 190px; }
  .product-nav { columns: 1; }
  .product-section__grid { grid-template-columns: 1fr; }
  .product-section__grid img { width: 170px; height: 170px; }
  .process-grid, .supplier-links, .locations-grid, .ipc-form-grid, .footer-grid { grid-template-columns: 1fr; }
  .ipc-field--full, .footer-about { grid-column: auto; }
  .ipc-form { padding: 24px 18px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-menu { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
