/* Knott Hott Ceramic Coatings — ground-up redesign
   Mobile-first, accessible, performance-minded. */

:root{
  /* Light mode (default) */
  --bg: #F6F7FB;
  --bg2: #FFFFFF;
  --surface: rgba(11,16,32,.04);
  --surface2: rgba(11,16,32,.07);
  --stroke: rgba(11,16,32,.12);
  --stroke2: rgba(11,16,32,.18);
  --text: rgba(11,16,32,.92);
  --muted: rgba(11,16,32,.72);
  --quiet: rgba(11,16,32,.56);
  --shadow: 0 24px 70px rgba(11,16,32,.12);
  --overlay: rgba(11,16,32,.06);
  --overlay2: rgba(11,16,32,.10);
  --topbar-bg1: rgba(255,255,255,.86);
  --topbar-bg2: rgba(255,255,255,.66);
  --menu-bg: rgba(255,255,255,.96);
  --sheen: rgba(11,16,32,.06);
  --footer-bg1: rgba(11,16,32,.02);
  --footer-bg2: rgba(11,16,32,.06);

  /* Brand accent (reddish-orange, closer to legacy) */
  --accent: #E03B2C;
  --accent2: #B71C2B;
  --good: #34D399;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --container: 1120px;
  --gutter: 20px;
  --nav-h: 72px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html{color-scheme:light; scroll-behavior:smooth}
html[data-theme="dark"]{
  --bg: #070A0F;
  --bg2: #0B1020;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.20);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --quiet: rgba(255,255,255,.56);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --overlay: rgba(0,0,0,.25);
  --overlay2: rgba(0,0,0,.18);
  --topbar-bg1: rgba(7,10,15,.88);
  --topbar-bg2: rgba(7,10,15,.55);
  --menu-bg: rgba(7,10,15,.96);
  --sheen: rgba(255,255,255,.07);
  --footer-bg1: rgba(255,255,255,.02);
  --footer-bg2: rgba(0,0,0,.10);
  color-scheme:dark;
}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(224,59,44,.14), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(183,28,43,.12), transparent 55%),
    radial-gradient(900px 700px at 40% 120%, rgba(99,102,241,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

img{max-width:100%; height:auto}
a{color:inherit}
button,input,select,textarea{font:inherit}

/* Accessibility */
.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  border-radius:999px;
  background:var(--menu-bg);
  border:1px solid var(--stroke);
  z-index:9999;
}
:focus-visible{outline:3px solid rgba(224,59,44,.55); outline-offset:3px}

.container{
  width:min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline:auto;
}

/* Top nav */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, var(--topbar-bg1), var(--topbar-bg2));
  border-bottom:1px solid var(--stroke);
}
.nav{
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.nav-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.nav-phone{
  padding:10px 12px;
  white-space:nowrap;
  display:none;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  min-width:0;
}
.brand-mark{height:34px; width:auto; max-width:160px}
.brand-mark[src*="knott-hott-icon"]{width:34px; height:34px; object-fit:contain}
.brand-mark[src$="knott-logo.png"] + div{display:none}
.hero-logo{
  display:block;
  width:min(520px, 100%);
  height:auto;
  margin:6px 0 14px;
  filter: drop-shadow(0 14px 30px rgba(11,16,32,.18));
}
html[data-theme="dark"] .hero-logo{
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.45));
}

.brand-name{
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.brand-tag{
  display:none;
  font-size:12px;
  color:var(--quiet);
  letter-spacing:.02em;
}

.nav-actions{display:flex; align-items:center; gap:10px}
.theme-toggle{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.theme-toggle:hover{transform:translateY(-1px); background:var(--surface2); border-color:var(--stroke2)}
.theme-toggle:active{transform:translateY(0)}
.theme-toggle svg{width:18px; height:18px}
.theme-toggle .icon-moon{display:none}
html[data-theme="dark"] .theme-toggle .icon-sun{display:none}
html[data-theme="dark"] .theme-toggle .icon-moon{display:block}
html:not([data-theme="dark"]) .theme-toggle .icon-sun{display:block}
.nav-toggle{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--surface);
  color:var(--text);
}
.nav-toggle svg{width:20px; height:20px}

.nav-links{
  display:none;
  position:absolute;
  left:0; right:0; top:var(--nav-h);
  background:var(--menu-bg);
  border-bottom:1px solid var(--stroke);
}
.nav-links[aria-hidden="false"]{display:block}
.nav-links .container{
  padding:12px 0 18px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nav-links .theme-toggle{
  width:100%;
  justify-content:center;
  margin-top:6px;
}
.nav-link{
  display:flex;
  align-items:center;
  white-space:nowrap;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
}
.nav-link:hover{color:var(--text); background:var(--surface); border-color:var(--stroke)}
.nav-link[aria-current="page"]{color:var(--text); background:rgba(224,59,44,.10); border-color:rgba(224,59,44,.28)}
.nav-link small{color:var(--quiet); font-family:var(--mono); font-size:12px}

@media (min-width: 700px){
  .nav-phone{display:inline-flex}
}
@media (min-width: 920px){
  :root{ --gutter: 28px; --nav-h: 78px; }
  .topbar{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:center;
    gap:1.5rem;
  }
  .topbar > .container.nav{
    flex:0 0 auto;
    width:max-content;
    max-width:none;
    margin-inline:0;
  }
  .brand-tag{display:block}
  .nav-toggle{display:none}
  .brand-mark{height:40px; max-width:220px}
  .brand-mark[src*="knott-hott-icon"]{width:40px; height:40px}
  .nav-links{
    display:flex !important;
    flex:0 0 auto;
    min-width:0;
    position:static;
    background:transparent;
    border:0;
    justify-content:flex-start;
    align-items:center;
  }
  .nav-links .container{
    padding:0;
    flex:0 0 auto;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:6px;
  }
  .nav-links .theme-toggle{
    width:44px;
    margin-top:0;
    margin-left:8px;
  }
  .nav-link{
    padding:10px 12px;
    border-radius:999px;
  }
  .nav-link small{display:none}
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:var(--surface);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:hover{transform:translateY(-1px); background:var(--surface2); border-color:var(--stroke2)}
.btn:active{transform:translateY(0)}
.btn-primary{
  border-color: rgba(224,59,44,.38);
  background: linear-gradient(180deg, rgba(224,59,44,.22), rgba(183,28,43,.12));
  box-shadow: 0 20px 45px rgba(224,59,44,.12);
}
.btn-primary:hover{border-color: rgba(224,59,44,.55); background: linear-gradient(180deg, rgba(224,59,44,.28), rgba(183,28,43,.14))}
.btn-ghost{background:transparent}
.btn svg{width:18px; height:18px}

/* Sections */
main{overflow-x:clip}
.section{padding:56px 0}
@media (min-width: 920px){ .section{padding:86px 0} }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
/* Eyebrow dot pulse: change animation duration in .eyebrow .dot to slow (e.g. 2.5s) or speed up (e.g. 1s) */
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(224,59,44,.12); opacity: 1; }
  50%      { box-shadow: 0 0 0 8px rgba(224,59,44,.22); opacity: .92; }
}
.eyebrow .dot{
  width:9px; height:9px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(224,59,44,.88));
  box-shadow: 0 0 0 4px rgba(224,59,44,.12);
  animation: dot-pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot { animation: none; }
}

.h1{
  font-size:clamp(34px, 5.6vw, 62px);
  line-height:1.04;
  letter-spacing:-.03em;
  margin:14px 0 12px;
}
.h2{
  font-size:clamp(24px, 3.1vw, 36px);
  line-height:1.14;
  letter-spacing:-.02em;
  margin:0 0 12px;
}
.lead{
  font-size:clamp(16px, 1.35vw, 19px);
  line-height:1.6;
  color:var(--muted);
  margin:0;
}
.muted{color:var(--muted)}
.quiet{color:var(--quiet)}

/* Hero */
.hero{
  padding:34px 0 22px;
  position:relative;
}
.hero::before{
  content:"";
  position:absolute; inset:-120px -20px -70px -20px;
  background:
    radial-gradient(700px 420px at 18% 10%, rgba(224,59,44,.26), transparent 60%),
    radial-gradient(560px 360px at 86% 20%, rgba(183,28,43,.18), transparent 55%),
    radial-gradient(1000px 900px at 55% 80%, var(--sheen), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
  z-index:-1;
}
.hero-grid{
  display:grid;
  gap:20px;
}
.hero-card{
  border-radius:var(--radius-lg);
  border:1px solid var(--stroke);
  background:
    linear-gradient(180deg, var(--surface), rgba(255,255,255,0));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-card::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(500px 240px at 65% 30%, rgba(224,59,44,.22), transparent 60%),
    radial-gradient(420px 240px at 25% 85%, rgba(183,28,43,.12), transparent 62%);
  opacity:.75;
  pointer-events:none;
}
.hero-inner{
  padding:24px;
  position:relative;
  z-index:1;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.hero-badges{
  margin-top:16px;
  display:flex; flex-wrap:wrap; gap:10px;
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background:var(--overlay);
  border:1px solid var(--stroke);
  color:var(--muted);
  font-size:13px;
}
.badge strong{color:var(--text); font-weight:700}
.badge svg{width:16px; height:16px; color:rgba(224,59,44,.95)}

.hero-media{
  border-radius:var(--radius-lg);
  border:1px solid var(--stroke);
  background:
    radial-gradient(800px 460px at 30% 10%, var(--sheen), transparent 60%),
    linear-gradient(180deg, var(--surface), rgba(255,255,255,0));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-media .media-inner{
  padding:18px;
}
.media-photo{
  border-radius:20px;
  border:1px solid var(--stroke);
  background:var(--surface);
  overflow:hidden;
  aspect-ratio: 16 / 11;
  position:relative;
}
.media-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: contrast(1.04) saturate(1.06);
  transition: opacity .42s ease, transform .42s ease;
}
.media-photo.is-fading img{opacity:0; transform: scale(1.01)}
.media-photo::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(700px 360px at 25% 20%, rgba(224,59,44,.14), transparent 55%),
    radial-gradient(520px 300px at 85% 15%, rgba(183,28,43,.10), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.14));
  pointer-events:none;
}
.media-caption{
  margin-top:10px;
  color:var(--quiet);
  font-size:13px;
  line-height:1.45;
}
@media (prefers-reduced-motion: reduce){
  .media-photo img{transition:none}
}
.spec-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.spec{
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--surface);
}
.spec .kicker{
  font-family:var(--mono);
  color:var(--quiet);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.spec .value{
  margin-top:6px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
}
.spec .sub{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

@media (min-width: 920px){
  .hero{padding:64px 0 34px}
  .hero-grid{grid-template-columns: 1.25fr .75fr; align-items:stretch; gap:22px}
  .hero-inner{padding:34px}
  .hero-media .media-inner{padding:22px}
  .spec-grid{grid-template-columns:1fr}
}

/* Cards + grids */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media (min-width: 700px){ .grid{grid-template-columns:repeat(2, 1fr)} }
@media (min-width: 980px){ .grid{grid-template-columns:repeat(3, 1fr); gap:16px} }

.card{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0));
  padding:18px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  position:relative;
  overflow:hidden;
}
.card-media{
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--surface);
  overflow:hidden;
  aspect-ratio: 16 / 9;
  margin:-2px 0 12px;
  position:relative;
}
.card-media-link{
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
  color:inherit;
}
.card-media-placeholder .card-media-link{
  display:flex;
  align-items:center;
  justify-content:center;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: contrast(1.03) saturate(1.05);
  transform: scale(1.01);
  transition: transform .25s ease;
}
.card:hover .card-media img{transform: scale(1.045)}
.card-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 220px at 20% 10%, rgba(224,59,44,.10), transparent 55%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.08));
  pointer-events:none;
}
.card-media-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
  letter-spacing:.04em;
}
.card-media-placeholder span{text-align:center; padding:12px}
.card .meta-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.card .meta-row .tag{
  font-family:var(--mono);
  font-size:12px;
  color:var(--quiet);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.card::before{
  content:"";
  position:absolute; inset:-60px -60px auto auto;
  width:180px; height:180px;
  background: radial-gradient(circle at 30% 30%, rgba(224,59,44,.20), transparent 55%);
  filter: blur(0px);
  opacity:.65;
  pointer-events:none;
}
.card:hover{transform:translateY(-2px); border-color:var(--stroke2); background: linear-gradient(180deg, var(--surface2), rgba(255,255,255,0))}
.card h3{
  margin:0 0 6px;
  font-size:18px;
  letter-spacing:-.01em;
}
.card p{margin:0; color:var(--muted); line-height:1.55}
.card .icon{
  width:38px; height:38px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:var(--surface);
  margin-bottom:12px;
  color:rgba(224,59,44,.95);
}
.card .icon svg{width:20px; height:20px}

/* Split layout */
.split{
  display:grid;
  gap:18px;
  align-items:start;
}
@media (min-width: 920px){
  .split{grid-template-columns: 1.05fr .95fr; gap:26px; align-items:center}
}
.panel{
  border-radius:var(--radius-lg);
  border:1px solid var(--stroke);
  background:var(--surface);
  padding:20px;
}
.panel strong{color:var(--text)}
.list{
  margin:0; padding:0; list-style:none;
  display:grid; gap:10px;
}
.list li{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 10px;
  border-radius:14px;
  background:var(--overlay2);
  border:1px solid var(--stroke);
}
.list svg{width:18px; height:18px; flex:0 0 auto; margin-top:2px; color:rgba(52,211,153,.95)}
.list .txt{color:var(--muted); line-height:1.55}

/* Reviews */
.review-summary{
  padding:14px 16px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:var(--overlay2);
}
.review-summary-rating{
  display:flex; align-items:center; gap:10px;
}
.review-summary-rating strong{font-size:1.5rem; color:var(--text)}
.review-stars{display:inline-flex; gap:2px; color:var(--accent)}
.review-stars .star{font-size:1.1rem; line-height:1}
.review-grid{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;
}
@media (min-width:620px){
  .review-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (min-width:920px){
  .review-grid{grid-template-columns:repeat(3, 1fr)}
}
.review-card{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:var(--surface);
  padding:18px;
  display:flex; flex-direction:column; gap:10px;
}
.review-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
}
.review-card .review-stars{margin-right:2px}
.review-author{font-weight:600; color:var(--text)}
.review-date{font-size:13px; color:var(--quiet)}
.review-text{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  flex:1;
}
.review-reply{
  margin-top:4px;
  padding:12px 14px;
  border-radius:12px;
  border-left:3px solid var(--accent);
  background:var(--overlay2);
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
}

/* FAQ */
.faq{
  display:grid;
  gap:10px;
}
details.faq-item{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:var(--surface);
  overflow:hidden;
}
.faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:16px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  color:var(--text);
  font-weight:700;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary .q{line-height:1.35}
.faq-item summary .chev{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--overlay2);
  display:grid; place-items:center;
  flex:0 0 auto;
  transition: transform .18s ease;
}
.faq-item[open] summary .chev{transform: rotate(180deg)}
.faq-item summary .chev svg{width:18px; height:18px}
.faq-item .a{
  padding:0 16px 16px;
  color:var(--muted);
  line-height:1.65;
}

/* Page headers + breadcrumbs */
.page-hero{
  padding:34px 0 10px;
}
.crumbs{
  margin-top:12px;
  color:var(--quiet);
  font-size:13px;
}
.crumbs a{color:var(--muted); text-decoration:none}
.crumbs a:hover{text-decoration:underline}

/* Forms */
form{margin:0}
.form{
  display:grid;
  gap:12px;
}
.fields{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width: 820px){ .fields{grid-template-columns:1fr 1fr} }
.field{display:grid; gap:6px}
.label{
  font-size:13px;
  color:var(--muted);
  letter-spacing:.02em;
}
.input, .textarea, .select{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: var(--surface);
  color:var(--text);
  padding:12px 12px;
  outline:none;
}
.textarea{min-height:120px; resize:vertical}
.input::placeholder, .textarea::placeholder{color:var(--quiet)}
.help{color:var(--quiet); font-size:13px; line-height:1.5}
.select{cursor:pointer; appearance:auto}

/* Shipping section */
#shipping .split{ align-items: flex-start; }
@media (max-width: 919px){ #shipping .split{ flex-direction: column; } }
.shipping-estimate-out{
  margin-top:14px;
  padding:14px 16px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:var(--overlay2);
  font-size:15px;
  color:var(--text);
  line-height:1.5;
}
.shipping-estimate-out:empty{ display:none }
.shipping-estimate-out .range{ font-weight:600; color:var(--accent) }
.shipping-disclaimer{ color:var(--quiet); font-size:12px; line-height:1.5 }

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:18px;
}
@media (min-width: 700px){ .gallery-grid{grid-template-columns:repeat(2, 1fr)} }
@media (min-width: 980px){ .gallery-grid{grid-template-columns:repeat(3, 1fr)} }
.gallery-grid.gallery-2x2{
  grid-template-columns:1fr;
}
@media (min-width: 700px){ .gallery-grid.gallery-2x2{grid-template-columns:repeat(2, 1fr)} }
@media (min-width: 980px){ .gallery-grid.gallery-2x2{grid-template-columns:repeat(2, 1fr)} }
.gallery-item{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:var(--surface);
  overflow:hidden;
  position:relative;
}
.gallery-item img{
  width:100%;
  height:100%;
  display:block;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  filter: contrast(1.04) saturate(1.06);
  transition: transform .25s ease;
}
.gallery-item:hover img{transform: scale(1.04)}
.gallery-item figcaption{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
  border:1px solid rgba(11,16,32,.14);
  color:rgba(11,16,32,.86);
  font-size:13px;
  line-height:1.35;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
html[data-theme="dark"] .gallery-item figcaption{
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
}
.gallery-item:hover figcaption{opacity:1; transform: translateY(0)}
.gallery-item figcaption strong{display:block; color:inherit}

/* Swatches */
.swatch-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:18px;
}
@media (min-width: 700px){ .swatch-grid{grid-template-columns:repeat(2, 1fr)} }
@media (min-width: 980px){ .swatch-grid{grid-template-columns:repeat(3, 1fr)} }
.swatch{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background: var(--surface);
  overflow:hidden;
}
.swatch .chip{
  height:120px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  border-bottom:1px solid var(--stroke);
  position:relative;
  overflow:hidden;
}
.swatch .chip img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#ffffff;
}
.swatch .chip::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(700px 240px at 25% 20%, rgba(224,59,44,.10), transparent 55%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.06));
  pointer-events:none;
}
.swatch .meta{padding:14px 14px}
.swatch .name{font-weight:800; letter-spacing:-.01em}
.swatch .note{margin-top:6px; color:var(--muted); font-size:13px; line-height:1.5}
.swatch{cursor:pointer; transition:border-color .2s ease, box-shadow .2s ease}
.swatch:hover{border-color:var(--stroke2); box-shadow:var(--shadow)}

/* Color modal */
.color-modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  visibility:hidden; opacity:0;
  transition:visibility .2s ease, opacity .2s ease;
}
.color-modal.is-open{visibility:visible; opacity:1}
.color-modal-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
  cursor:pointer;
}
.color-modal-box{
  position:relative; z-index:1;
  display:flex; align-items:center; gap:16px;
  max-width:min(600px, 100%);
  max-height:90vh;
  border-radius:var(--radius-lg);
  border:1px solid var(--stroke);
  background:var(--bg2);
  box-shadow:0 28px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
  overflow:hidden;
}
.color-modal-close{
  position:absolute; top:14px; right:14px; z-index:2;
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--bg2);
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.color-modal-close:hover{background:var(--surface2); border-color:var(--stroke2)}
.color-modal-close svg{width:20px; height:20px}
.color-modal-prev,
.color-modal-next{
  flex:0 0 auto;
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--bg2);
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.color-modal-prev:hover,
.color-modal-next:hover{background:var(--surface2); border-color:var(--stroke2)}
.color-modal-prev svg,
.color-modal-next svg{width:24px; height:24px}
.color-modal-body{
  flex:1 1 auto;
  min-width:0;
  padding:48px 28px 28px;
  text-align:center;
  overflow-y:auto;
  max-height:85vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.color-modal-img{
  width:100%;
  max-height:300px;
  min-height:140px;
  object-fit:contain;
  display:block;
  margin:0 auto 20px;
  border-radius:12px;
  background:var(--bg);
  transition:opacity .15s ease;
}
.color-modal-img.is-loading{opacity:.4}
.color-modal-name{
  margin:0 0 10px;
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.25;
  color:var(--text);
  flex-shrink:0;
  max-width:100%;
}
.color-modal-note{
  margin:0;
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  flex-shrink:0;
  max-width:36ch;
}

/* Gallery modal */
.gallery-modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  visibility:hidden; opacity:0;
  transition:visibility .2s ease, opacity .2s ease;
}
.gallery-modal.is-open{visibility:visible; opacity:1}
.gallery-modal-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
  cursor:pointer;
}
.gallery-modal-box{
  position:relative; z-index:1;
  display:flex; align-items:center; gap:16px;
  max-width:min(90vw, 900px);
  max-height:90vh;
  border-radius:var(--radius-lg);
  border:1px solid var(--stroke);
  background:var(--bg2);
  box-shadow:0 28px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06);
  overflow:hidden;
}
.gallery-modal-close{
  position:absolute; top:14px; right:14px; z-index:2;
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--bg2);
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.gallery-modal-close:hover{background:var(--surface2); border-color:var(--stroke2)}
.gallery-modal-close svg{width:20px; height:20px}
.gallery-modal-prev,
.gallery-modal-next{
  flex:0 0 auto;
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--bg2);
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.gallery-modal-prev:hover,
.gallery-modal-next:hover{background:var(--surface2); border-color:var(--stroke2)}
.gallery-modal-prev svg,
.gallery-modal-next svg{width:24px; height:24px}
.gallery-modal-body{
  flex:1 1 auto;
  min-width:0;
  padding:48px 28px 28px;
  text-align:center;
}
.gallery-modal-img{
  width:100%;
  max-height:70vh;
  object-fit:contain;
  display:block;
  margin:0 auto 16px;
  border-radius:12px;
  background:var(--bg);
}
.gallery-modal-caption{
  margin:0;
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  max-width:42ch;
  margin-inline:auto;
}
.gallery-modal-caption strong{display:block; color:var(--text); margin-bottom:4px; font-size:1.1em}
.gallery-item{cursor:pointer; transition:opacity .2s ease, transform .2s ease}
.gallery-item:hover{opacity:.92; transform:scale(1.01)}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: var(--overlay2);
  color:var(--muted);
  font-size:13px;
}

/* Footer */
.footer{
  border-top:1px solid var(--stroke);
  padding:30px 0 46px;
  background: linear-gradient(180deg, var(--footer-bg1), var(--footer-bg2));
}
.footer-grid{
  display:grid; gap:16px;
}
@media (min-width: 920px){ .footer-grid{grid-template-columns: 1.2fr .8fr .8fr; gap:18px} }
.footer a{text-decoration:none}
.footer a:hover{text-decoration:underline}
.fineprint{color:var(--quiet); font-size:13px; line-height:1.55}
.footer h3{margin:0 0 10px; font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}

/* Utility */
.stack{display:flex; flex-direction:column; gap:10px}
.row{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.divider{height:1px; background:var(--stroke); margin:18px 0}
.logo-strip{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.logo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--surface);
}
.logo-badge img{display:block; height:22px; width:auto; filter: contrast(1.02) saturate(1.02)}
html[data-theme="dark"] .logo-badge img{filter:none}

/* Homepage coating logos (Cerakote, Tech Line) */
.coating-logos-section{ padding-top: 0; }
.coating-logos{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
}
.coating-logos img{
  display: block;
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: contrast(1.02) saturate(1.02);
}
html[data-theme="dark"] .coating-logos img{ filter: none; }
@media (min-width: 620px){
  .coating-logos img{ height: 88px; max-width: 280px; }
}

/* Scroll reveal */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-revealed{
  opacity:1;
  transform: translateY(0);
}

/* Mobile call button */
.callbar{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  display:flex;
}
/* On mobile, put Call Now on the left so it doesn’t overlap the AI agent on the right */
@media (max-width: 919px){
  .callbar{
    left:16px;
    right:auto;
  }
}
.callbar a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(224,59,44,.24), rgba(183,28,43,.14));
  border:1px solid rgba(224,59,44,.42);
  text-decoration:none;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.callbar svg{width:18px; height:18px}
@media (min-width: 920px){ .callbar{display:none} }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn, .card, .faq-item summary .chev, .reveal{transition:none !important}
  .reveal{opacity:1; transform:none}
}

