/* ============================================================
   PPC — shared site stylesheet
   One source of truth for tokens, header, footer, buttons,
   scroll animations and the shared component kit used across
   every non-hero page (Services, Contact, Quote, category
   landing pages and product-detail pages).

   Loaded from assets/site.css so the ppc-direct WordPress theme
   auto-rewrites the URL to the theme's /assets folder on render.
   ============================================================ */

:root {
  --ink: #181818;
  --ink-2: #303030;
  --paper: #ffffff;
  --warm: #f6f4ee;
  --warm-2: #eeebe2;
  --muted: #686762;
  --line: #dedbd2;
  --gold: #f2c200;
  --gold-light: #fff4bf;
  --gold-deep: #8e6500;
  --max: 1440px;
  --gutter: clamp(20px, 3.2vw, 52px);
  --header-h: 78px;
  --display: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 116px); }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; color: var(--ink); background: var(--gold); font-weight: 800; text-decoration: none; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* ---- Typography helpers ---- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--gold-deep); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.title { max-width: 800px; margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.045em; font-weight: 850; }
.section-title { margin: 0; max-width: 740px; font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.65rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 820; }
.lead { margin: 22px 0 0; max-width: 650px; font-size: clamp(1.04rem, 1.35vw, 1.2rem); line-height: 1.7; }
.body-copy { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }

/* ---- Buttons ---- */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--gold, .btn--primary { color: var(--ink); background: var(--gold); }
.btn--gold:hover, .btn--primary:hover { background: #ffd632; }
.btn--outline, .btn--ghost { color: white; border-color: rgba(255,255,255,.4); }
.btn--outline:hover, .btn--ghost:hover { border-color: white; background: rgba(255,255,255,.08); }
.btn--dark { color: white; background: var(--ink); }
.btn--dark:hover { background: #333; }
.btn--ink-outline { color: var(--ink); border-color: #cbc7bb; background: white; }
.btn--ink-outline:hover { border-color: var(--gold-deep); background: var(--warm); }

/* ---- Header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: white; background: transparent; border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.site-header.is-scrolled { background: rgba(24,24,24,.82); border-bottom-color: rgba(255,255,255,.06); backdrop-filter: blur(9px); }
.site-header__inner { width: 100%; max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(10px,1.6vw,18px) clamp(18px,5vw,64px); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 10px; padding: 0; background: transparent; border: 0; }
.nav a { padding: 7px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); transition: color .25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu { display: none; }

/* Header variant for light-topped pages (breadcrumb pages start light, so
   the header needs a solid charcoal base immediately for legibility). */
.site-header--solid { background: rgba(24,24,24,.9); border-bottom-color: rgba(255,255,255,.06); backdrop-filter: blur(9px); }

/* ---- Breadcrumb ---- */
.breadcrumb { padding-top: calc(var(--header-h) + 22px); padding-bottom: 4px; background: var(--paper); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #b9b4a6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---- Generic dark hero (used by main pages) ---- */
.hero { overflow: hidden; color: white; background: var(--ink); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: #d0d0d0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---- Trust / proof strips ---- */
.trust { background: var(--gold); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { min-height: 112px; display: flex; align-items: center; gap: 13px; padding: 22px clamp(16px,2.4vw,34px); border-right: 1px solid rgba(60,45,0,.2); }
.trust__item:last-child { border-right: 0; }
.trust__icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.5); }
.trust__icon svg { width: 19px; height: 19px; }
.trust__item strong { display: block; margin-bottom: 3px; font-size: .94rem; }
.trust__item span { display: block; color: #574500; font-size: .77rem; line-height: 1.35; }

/* ---- Feature / capability cards ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { min-height: 250px; display: flex; flex-direction: column; padding: clamp(24px,3vw,38px); background: var(--warm); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature--dark { background: var(--ink); color: white; }
.feature:hover { transform: translateY(-4px); border-color: #c4b56f; box-shadow: 0 16px 36px rgba(15,15,15,.08); }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 50%; color: var(--ink); background: var(--gold); }
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { margin: auto 0 9px; font-size: 1.25rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.58; }
.feature--dark p { color: #c9c9c9; }

/* ---- Product card (shared by category grids) ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 24px); }
.product-card { min-width: 0; background: white; border: 1px solid var(--line); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #c5b66d; box-shadow: 0 20px 40px rgba(24,24,24,.1); }
.product-card > a { height: 100%; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.product-card__media { position: relative; aspect-ratio: 1.18 / 1; overflow: hidden; background: var(--warm); border-bottom: 1px solid var(--line); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: clamp(20px, 2.5vw, 34px); mix-blend-mode: multiply; transition: transform .25s ease; }
.product-card:hover .product-card__media img { transform: scale(1.055); }
.product-card__tag { position: absolute; left: 12px; top: 12px; padding: 6px 9px; color: #4d3d00; background: var(--gold-light); border: 1px solid #e3cf6b; font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.product-card__body { flex: 1; display: flex; flex-direction: column; padding: 21px; }
.product-card__code { margin: 0 0 8px; color: var(--gold-deep); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.product-card h3 { margin: 0 0 10px; font-size: 1.06rem; line-height: 1.28; letter-spacing: -.01em; }
.product-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.57; }
.product-card__action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; color: var(--ink); font-size: .8rem; font-weight: 850; }
.product-card__arrow { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--ink); background: var(--gold); transition: transform .2s ease; }
.product-card__arrow svg { width: 16px; height: 16px; }

/* Product-family landing pages */
.cat-intro { padding-top: clamp(18px, 2.4vw, 30px); }
.cat-intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.cat-intro__media { position: relative; aspect-ratio: 4 / 3; background: var(--warm); border: 1px solid var(--line); overflow: hidden; }
.cat-intro__media img { width: 100%; height: 100%; object-fit: contain; padding: clamp(24px, 4vw, 52px); mix-blend-mode: multiply; }
.cat-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cat-meta span { padding: 8px 13px; background: var(--warm); border: 1px solid var(--line); font-size: .78rem; font-weight: 750; color: var(--ink-2); }
.product-card:hover .product-card__arrow { transform: translateX(3px); }

/* ---- Product-detail page ---- */
.pd-hero { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 80px); }
.pd-hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.pd-gallery { position: relative; }
.pd-gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--warm); border: 1px solid var(--line); overflow: hidden; }
.pd-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: clamp(26px, 4vw, 58px); mix-blend-mode: multiply; }
.pd-gallery__badge { position: absolute; left: 16px; top: 16px; padding: 8px 12px; color: #4d3d00; background: var(--gold-light); border: 1px solid #e3cf6b; font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.pd-info__code { display: inline-block; margin: 0 0 14px; padding: 5px 11px; color: var(--gold-deep); background: var(--warm); border: 1px solid var(--line); font-size: .74rem; font-weight: 850; letter-spacing: .1em; }
.pd-info h1 { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 850; }
.pd-info__lead { margin: 20px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.72; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.pd-badges li { padding: 7px 12px; background: var(--warm); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Spec + application blocks */
.pd-detail { background: var(--warm); border-block: 1px solid var(--line); }
.pd-detail__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 5vw, 68px); align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); }
.spec-table caption { text-align: left; padding: 16px 18px; font-weight: 850; background: var(--ink); color: white; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.spec-table th { width: 38%; color: var(--ink-2); font-weight: 700; }
.spec-table td { color: var(--muted); }
.spec-table tr:nth-child(even) td, .spec-table tr:nth-child(even) th { background: #fbfaf6; }

.size-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); }
.size-table caption { text-align: left; padding: 16px 18px; font-weight: 850; background: var(--ink); color: white; font-size: .95rem; }
.size-table th, .size-table td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); font-size: .88rem; }
.size-table thead th { background: var(--warm-2); color: var(--ink); font-weight: 800; border-top: 0; }
.size-table td { color: var(--muted); }
.size-table tbody tr:hover td { background: #fbfaf6; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .size-table { min-width: 620px; }
.pd-panel { background: white; border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 32px); }
.pd-panel h3 { margin: 0 0 16px; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }

.pd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pd-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.pd-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--gold); }

/* ---- Forms (Quote + Contact) ---- */
.form-card { background: white; border: 1px solid var(--line); box-shadow: 0 18px 46px rgba(15,15,15,.06); padding: clamp(24px, 3.4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 750; color: var(--ink-2); }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea { min-height: 48px; padding: 12px 14px; color: var(--ink); background: #fbfaf6; border: 1px solid #cbc7bb; border-radius: 0; font-size: .96rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); background: white; outline: 3px solid rgba(242,194,0,.28); outline-offset: 1px; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.form-actions { margin-top: 20px; }

/* ---- CTA gold band ---- */
.cta { background: var(--gold); }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; padding-block: clamp(56px,7vw,88px); }
.cta .section-title { max-width: 780px; }
.cta p { max-width: 680px; margin: 16px 0 0; color: #4b3b00; line-height: 1.65; }
.cta .btn { color: white; background: var(--ink); min-width: 170px; }
.cta .btn:hover { background: #333; }

/* ---- Footer ---- */
.footer { color: #d0d0d0; background: #121212; border-top: 1px solid #2c2c2c; }
.footer__grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr; gap: clamp(36px, 7vw, 100px); padding-block: 62px 48px; }
.footer__logo { width: 80px; height: 70px; object-fit: contain; margin-bottom: 17px; }
.footer p { max-width: 360px; margin: 7px 0; color: #9c9c9c; font-size: .88rem; line-height: 1.6; }
.footer h2 { margin: 0 0 17px; color: white; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.footer nav { display: grid; gap: 11px; }
.footer a { color: #d0d0d0; text-decoration: none; font-size: .88rem; }
.footer a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid #2d2d2d; color: #858585; font-size: .76rem; }

/* ---- Scroll-reveal (opt-in via .js) ---- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .36s ease-out, transform .36s cubic-bezier(.22,.7,.28,1); will-change: opacity, transform; }
.js [data-reveal="left"] { transform: translate3d(-24px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(24px, 0, 0); }
.js [data-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0); will-change: auto; }
.js [data-stagger] > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .32s ease-out, transform .32s cubic-bezier(.22,.7,.28,1); transition-delay: calc(var(--stagger-index, 0) * 55ms); }
.js [data-stagger].is-visible > * { opacity: 1; transform: translate3d(0,0,0); }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .pd-hero__grid, .pd-detail__grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .mobile-menu { display: block; position: relative; color: white; }
  .mobile-menu summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; padding: 9px 14px; border: 1px solid #555; border-radius: 999px; font-size: .86rem; font-weight: 750; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu__panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(280px, calc(100vw - 40px)); display: grid; padding: 10px; background: #262626; border: 1px solid #444; box-shadow: 0 16px 40px rgba(0,0,0,.35); z-index: 60; }
  .mobile-menu__panel a { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; color: white; text-decoration: none; font-size: .92rem; }
  .mobile-menu__panel a:hover { color: var(--gold); }
}
@media (max-width: 900px) {
  .cat-intro__grid { grid-template-columns: 1fr; }
  .cat-intro__media { order: -1; }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid rgba(60,45,0,.2); }
  .form-grid { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta .btn { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card__media { aspect-ratio: 1.35 / 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(60,45,0,.2); }
  .trust__item:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :first-child { grid-column: auto; }
  .footer__bottom { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; will-change: auto; }
}
