/*
Theme Name: AIE Board
Theme URI: https://aie-digital.com/
Author: AIE Board
Description: A responsive WordPress theme with the bundled AIE Board display catalog.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: aie-board
*/
:root {
  --ink: #121c2c;
  --muted: #4a5a6d;
  --navy: #0a285a;
  --blue: #104eaa;
  --pale: #f1f5fa;
  --line: #dce4ef;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: white; font: 16px/1.65 system-ui, -apple-system, sans-serif; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 1rem 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #2476dd; outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.17; letter-spacing: -.025em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
p { margin: 0 0 1rem; }
p:empty, .source-section:empty { display: none; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: white; }
.utility { color: #e4edf9; background: var(--navy); }
.utility-inner { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: .32rem; font-size: .82rem; }
.utility a { color: inherit; text-decoration: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { flex: 0 0 auto; }
.brand img { width: min(15vw, 196px); min-width: 126px; height: auto; }
.masthead ul { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem 1.05rem; list-style: none; margin: 0; padding: 0; }
.masthead li { position: relative; }
.masthead .sub-menu { display: none; position: absolute; z-index: 5; min-width: 12rem; padding: .8rem; background: white; border: 1px solid var(--line); }
.masthead li:hover > .sub-menu, .masthead li:focus-within > .sub-menu { display: block; }
.masthead a { color: var(--ink); font-size: .91rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.masthead a[aria-current=page], .masthead a:hover { color: var(--blue); text-decoration: underline; }
.menu-toggle { display: none; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { z-index: 20; top: 1rem; left: 1rem; width: auto; height: auto; padding: .7rem 1rem; clip-path: none; background: white; }
.catalog-content, .wp-content { padding-block: 1rem 4rem; }
.wp-content article { padding-block: 1.5rem; }
.breadcrumb { padding: .45rem 0 1rem; display: flex; gap: .5rem; color: var(--muted); font-size: .86rem; }
.catalog-content > .source-section { padding: clamp(1.4rem, 4vw, 3.5rem) 0; }
.catalog-content > .source-section + .source-section { border-top: 1px solid var(--line); }
.home-content > .source-section:first-child { text-align: center; }
.home-content > .source-section:first-child h1 { max-width: 800px; margin-inline: auto; }
.home-content > .source-section:first-child .source-grid { text-align: left; margin-top: 2rem; }
.source-section:has(h1) { min-height: 12rem; display: grid; align-items: center; }
.source-section:has(h1) h1 { max-width: 25ch; }
.source-grid { display: grid; grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr)); align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }
.cols-3 { --columns: 3; }
.cols-4 { --columns: 4; }
.cols-5 { --columns: 5; }
.cols-6 { --columns: 6; }
.source-grid > * { min-width: 0; }
.source-grid .surface { padding: clamp(1rem, 2vw, 1.65rem); border-radius: 1rem; background: var(--pale); }
.source-bg { position: relative; border-radius: 1rem; padding: clamp(1rem, 3.4vw, 3.2rem); background: var(--pale) var(--source-image) center / cover no-repeat; min-height: 11rem; }
.catalog-content > .source-bg { padding-inline: clamp(1rem, 4vw, 3.5rem); }
.source-bg:has(h1), .source-bg:has(h2), .source-bg:has(h3), .source-bg:has(p) { color: white; background-image: linear-gradient(95deg, #071a38ed, #09214f48), var(--source-image); }
.source-bg:has(h1) { min-height: clamp(18rem, 35vw, 31rem); }
.source-bg a:not(.button) { color: inherit; }
.source-bg a:empty { display: block; position: absolute; inset: 0; }
.catalog-content figure img { margin-inline: auto; border-radius: .55rem; object-fit: contain; }
.center { text-align: center; }
ul:has(> li > a > p) { padding-left: 1.2rem; }
.tab-list { display: none; }
.enhanced-tabs > .tab-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 1rem 0 2rem; list-style: none; }
.tab-list a { display: block; padding: .55rem 1rem; background: var(--pale); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.tab-list a[aria-selected=true] { color: white; border-color: var(--navy); background: var(--navy); }
.tab-panel { margin-block: 1rem; }
.enhanced-tabs .tab-fallback { display: none; }
.table-scroll { overflow-x: auto; margin-block: 1.2rem; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--navy); color: white; }
tr:nth-child(even) td { background: var(--pale); }
button, .button { appearance: none; display: inline-block; width: fit-content; border: 0; border-radius: .45rem; background: var(--blue); color: white; padding: .61rem 1rem; text-decoration: none; cursor: pointer; font: inherit; font-weight: 650; }
button:hover, .button:hover { background: var(--navy); color: white; }
.quote-callout { background: var(--pale); border: 1px solid var(--line); border-radius: 1rem; margin-top: 2rem; padding: clamp(1.3rem, 4vw, 2.8rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.quote-callout h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.quote-callout p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.inquiry { padding: 1.4rem; background: var(--pale); border-radius: .8rem; }
.inquiry label { display: grid; margin-bottom: .9rem; font-weight: 650; }
input, textarea { min-width: 0; background: white; color: var(--ink); border: 1px solid #9eafc4; border-radius: .4rem; font: inherit; padding: .62rem .7rem; }
.inquiry textarea { resize: vertical; }
.catalog-search { display: flex; gap: .45rem; margin: 1rem 0; }
.catalog-search input { width: min(100%, 28rem); }
.catalog-results { padding-left: 1.2rem; }
.notice { padding: .8rem; border-left: .2rem solid var(--blue); background: var(--pale); }
.site-footer { background: #0a1b36; color: #e1eafa; padding: 2.5rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2rem; }
.footer-grid a { display: block; color: inherit; }
.footer-grid h2, .footer-grid strong { font-size: 1.25rem; }
.copyright { margin-top: 2rem; border-top: 1px solid #6d829565; padding-top: .9rem; font-size: .86rem; }
@media (max-width: 1150px) {
  .masthead { flex-wrap: wrap; padding-block: .6rem; min-height: auto; gap: .5rem 1rem; }
  .js .menu-toggle { display: block; }
  .masthead nav { flex-basis: 100%; }
  .js .masthead nav:not(.open) { display: none; }
  .masthead ul { padding: .35rem 0; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .source-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .source-bg { min-height: 15rem; }
  .utility-inner { justify-content: center; }
  .catalog-content > .source-section { padding-block: 1.4rem; }
}
.featured-products { list-style: none; padding: 0; align-items: stretch; }
.featured-products > li { background: var(--pale); border-radius: .8rem; padding: 1rem; }
.featured-products a { display: grid; gap: .65rem; color: var(--navy); font-weight: 700; text-decoration: none; }
.featured-products img { width: 100%; aspect-ratio: 1.6; object-fit: contain; }
.source-section .source-grid:has(.source-section.surface) { align-items: stretch; }
.source-section.surface { padding: 1.15rem; background: var(--pale); border-radius: .85rem; }
.source-section.surface:has(.source-bg) { background: transparent; }
.source-grid > div:has(> div > .source-section.surface),
.source-grid > div > div:has(> .source-section.surface) { display: contents; }
.source-grid .source-section.surface img { width: 100%; max-height: 20rem; object-fit: contain; }
@media (min-width: 701px) and (max-width: 1000px) {
  .featured-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .featured-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
