/* Pmise Solutions — site-wide stylesheet. Tokens mirror DESIGN.md. */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #2c2420;
  --muted: #8a7f78;
  --accent: #b8736a;
  --accent-strong: #9a5c54;
  --accent-tint: #f5edeb;
  --gold: #c4a882;
  --border: #e5ddd8;
  --inverse-bg: #2c2420;
  --inverse-fg: #ebe3dc;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-rest: 0 1px 3px rgba(44,36,32,.06);
  --shadow-hover: 0 12px 32px rgba(44,36,32,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
p { margin: 0 0 1em; line-height: 1.65; color: var(--muted); }
p a, li a { color: var(--accent); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: fixed; top: -100%; left: 8px; z-index: 999;
  padding: 8px 16px; background: var(--ink); color: #fff;
  border-radius: var(--rounded-md, 6px);
}
.skip-link:focus { top: 8px; }

/* Topline */
.topline {
  background: var(--ink); color: var(--inverse-fg);
  font-size: 13px; line-height: 1; padding: 10px 0;
}
.topline .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topline a { color: var(--inverse-fg); }
.topline a:hover { color: var(--accent); text-decoration: underline; }
.topline .certs { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.bar { display: flex; align-items: center; gap: 32px; padding: 14px 24px; }
.logo { display: flex; align-items: baseline; gap: 6px; font-family: var(--serif); }
.logo:hover { text-decoration: none; }
.logo .word { font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.logo .word em { color: var(--accent); font-style: normal; }
.logo .tag { font-size: .78rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ink);
  border-radius: var(--rounded-sm, 6px); transition: background .2s;
}
.nav a:hover { background: var(--accent-tint); text-decoration: none; }
.nav a[aria-current] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 14px; font-weight: 500;
  border-radius: var(--rounded-md, 8px);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .16s var(--ease-out), box-shadow .25s var(--ease-out);
  cursor: pointer; border: 1px solid transparent; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
/* transform hovers live in the (hover:hover) block at the end of this file */
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-tint); border-color: var(--accent-tint); }
.btn-ghost-dark { background: transparent; color: var(--inverse-fg); border-color: rgba(255,255,255,.25); }
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  padding: 80px 0 64px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.hero .lede { font-size: 1.1rem; margin: 16px 0 28px; color: var(--muted); max-width: 48ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual .plate {
  background: #fff; border-radius: var(--rounded-lg, 14px);
  padding: 32px; box-shadow: var(--shadow-rest); border: 1px solid var(--border);
}
.hero-visual figcaption {
  display: flex; justify-content: space-between; padding: 10px 4px 0;
  font-size: 13px; color: var(--muted);
}

/* Proof/trust band */
.proof {
  padding: 18px 0; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.proof .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; }
.chip {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent-strong);
  border-radius: var(--pill, 999px);
}
.proof .terms { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.proof .terms span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.proof .terms svg { flex-shrink: 0; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .num {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head .lede { color: var(--muted); }

/* Solutions grid */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rounded-md, 8px); padding: 36px 28px;
  box-shadow: var(--shadow-rest); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative; overflow: hidden;
}
.sol-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold); transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}
.sol-card .icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.sol-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }
.sol-card .d { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Featured product split */
.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rounded-md, 8px); overflow: hidden;
}
.featured .photo { background: #fff; padding: 32px; display: flex; align-items: center; justify-content: center; }
.featured .body { padding: 40px 40px 40px 0; }
.featured .cat { font-size: 12px; font-weight: 500; letter-spacing: .10em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; display: block; }
.featured h3 { font-size: 1.6rem; margin-bottom: 12px; }
.featured .desc { color: var(--muted); margin-bottom: 16px; }
.featured .tags { margin-bottom: 16px; }
.featured .more { font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* Product row */
.row { display: grid; gap: 20px; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.mini-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rounded-md, 8px); overflow: hidden;
  box-shadow: var(--shadow-rest); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.mini-card .thumb { background: #fff; padding: 16px; }
.mini-card .txt { padding: 16px 20px 20px; }
.mini-card .cat-line { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2px; }
.mini-card .name { font-family: var(--serif); font-size: 1.1rem; }
.mini-card .sub { font-size: 13px; color: var(--muted); }
.mini-all { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--accent-tint); border-style: dashed; padding: 24px; }
.mini-all .more-link { font-size: 14px; font-weight: 500; color: var(--accent); margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

/* Trust pillar grid */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar { text-align: center; padding: 32px 16px; }
.pillar .icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; background: var(--accent-tint); color: var(--accent);
  border-radius: var(--rounded-md, 8px); margin-bottom: 16px;
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--muted); margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.8rem; font-weight: 500; color: var(--accent); display: block; line-height: 1; margin-bottom: 4px; }
.stat .lbl { font-size: 13px; color: var(--muted); }

/* Treatment index */
.tx-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tx-col h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tx-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tx-link:hover { color: var(--accent); text-decoration: none; }
.tx-link .wl { font-size: 12px; color: var(--muted); font-family: var(--sans); }

/* CTA band */
.cta-band {
  background: var(--inverse-bg); color: var(--inverse-fg);
  padding: 64px; border-radius: var(--rounded-lg, 14px); text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--inverse-fg); max-width: 48ch; margin: 0 auto 28px; opacity: .85; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--inverse-bg); color: var(--inverse-fg);
  padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand-blurb { font-size: 14px; line-height: 1.6; color: var(--inverse-fg); opacity: .75; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .10em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--inverse-fg); font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; opacity: .6; }

/* Inner pages */
.page { padding: 64px 0 96px; background: var(--surface); }
.page-head { max-width: 700px; margin-bottom: 48px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { color: var(--muted); font-size: 1.05rem; }
.content { max-width: 68ch; }
.content h2 { margin: 40px 0 12px; }
.content h3 { margin: 28px 0 8px; }
.content p { margin-bottom: 16px; }
.content ul { padding-left: 20px; }
.content ul li { margin-bottom: 8px; color: var(--muted); }
.content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.content th, .content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.content th { background: var(--bg); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Product page */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-visual { background: #fff; padding: 32px; border-radius: var(--rounded-lg, 14px); border: 1px solid var(--border); }
.product-info .cat { font-size: 12px; font-weight: 500; letter-spacing: .10em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.product-info h1 { margin-bottom: 8px; }
.product-info .subtitle { color: var(--muted); margin-bottom: 24px; }

/* Contact form */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rounded-md, 8px); padding: 40px;
  max-width: 640px; box-shadow: var(--shadow-rest);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.span2 { grid-template-columns: 1fr; }
.form-card label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--ink); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--rounded-sm, 6px); font-family: var(--sans);
  font-size: 14px; color: var(--ink); background: #fff; transition: border-color .2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-card textarea { min-height: 100px; resize: vertical; }
.form-card .hint { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.form-card .hint a { color: var(--accent); }

/* 404 */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 { font-size: 6rem; color: var(--accent); margin-bottom: 8px; }
.error-page p { margin-bottom: 28px; }

/* Reveal animation (JS-gated) */
html:not(.js) .reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Split text */
html.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); transition-delay: calc(.05s * var(--i, 0)); }
html.js.loaded .hero h1 .w { opacity: 1; transform: translateY(0); }

/* Spotlight hover */
.spot { position: relative; }
.spot::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(184,115,106,.06) 0%, transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .hero h1 .w { opacity: 1; transform: none; transition: none; }
  .stat .num { transition: none !important; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero .grid, .featured, .product-layout { grid-template-columns: 1fr; }
  .sol-grid, .c3, .pillars, .stats, .tx-index { grid-template-columns: 1fr; }
  .pillars { gap: 0; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px; gap: 4px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .proof .terms { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .featured .body { padding: 24px; }
}

/* Pointer-gated hovers: touch devices trigger :hover on tap and the state
   sticks, so transform lifts only run for fine pointers */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
  .sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
  .sol-card:hover::after { transform: scaleX(1); }
  .mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }
  .mini-all:hover { background: var(--surface); }
}
