:root {
  --bg: #111315;
  --surface: #1a1d20;
  --border: #2c3136;
  --text: #c9cdd2;
  --muted: #9aa0a6;
  --white: #f4f4f5;
  --green: #2f7343;
  --green-text: #7fc893;
  --gold: #d6b25e;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 "Open Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-family: "Nunito Sans", sans-serif; font-weight: 800; color: var(--white); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.center-text { text-align: center; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { flex: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: #b4b9bf; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--white); }
.nav a[aria-current] { color: var(--green-text); border-color: var(--green-text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 14px; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: 4px; padding: 11px 22px; font: 700 14px/1.3 "Open Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: transparent; color: #fff; }
.btn.outline { background: transparent; border-color: var(--text); color: var(--white); }
.btn.outline:hover { background: var(--white); border-color: var(--white); color: var(--bg); }
.btn.small { padding: 8px 14px; font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.actions.center { justify-content: center; }
.text-link { font-weight: 700; }

/* Hero */
.eyebrow { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6em; }
.hero { padding: clamp(64px, 11vw, 130px) var(--gutter); text-align: center; background: linear-gradient(rgba(17,19,21,.72), rgba(17,19,21,.9)), url(hero.jpg) center/cover; border-bottom: 1px solid var(--border); }
.hero .eyebrow { color: #d7d9dc; font-size: 1.1rem; letter-spacing: .04em; text-transform: none; font-weight: 400; }
.hero h1 { font-size: clamp(3rem, 9vw, 4.6rem); margin-bottom: .3em; }
.lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 8px; color: #e4e5e7; }
.notice { max-width: 720px; margin: 36px auto 0; padding: 20px 24px; text-align: left; background: rgba(0,0,0,.6); border: 1px solid var(--green-text); border-radius: 8px; }
.notice p { margin: 0; }
.subhero { padding: clamp(48px, 8vw, 88px) var(--gutter); text-align: center; background: linear-gradient(rgba(17,19,21,.85), rgba(17,19,21,.85)), url(subhero.jpg) center/cover; border-bottom: 1px solid var(--border); }
.subhero h1 { margin: 0; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.fine { font-size: .9rem; color: var(--muted); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse .split-text { order: 2; }
}
.split-media img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.callout { color: var(--white); font-weight: 700; font-size: 1.1rem; border-left: 3px solid var(--green-text); padding-left: 16px; margin: 24px 0; }
.quote { font-style: italic; font-weight: 400; }

/* Home feature */
.feature { background: #000; border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.feature-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature .photo { background: #000; border: 0; }

/* Photos */
.photo { margin: 0; background: #000; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.photo a { display: block; cursor: zoom-in; }
.photo img { width: 100%; }
.nines-photos img, .feature-photos img { aspect-ratio: 2 / 3; }
.photo figcaption { padding: 10px 12px; font-size: .88rem; font-weight: 700; color: var(--white); text-align: center; background: var(--surface); border-top: 1px solid var(--border); }

/* 5 Nines */
.nines-row { padding: 28px 0 36px; border-top: 1px solid var(--border); }
.nines-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.nines-head h3 { font-size: 1.5rem; margin: 0; }
.purity { color: var(--gold); font-weight: 700; margin: 0; font-size: .95rem; }
.nines-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; }

/* Product cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.surface .card { background: var(--bg); }
.card .photo { border: 0; border-radius: 0; }
.card .photo img { height: 280px; object-fit: contain; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.08rem; }
.card-body .btn { margin-top: auto; }
.card-body .purity { margin-bottom: 10px; }

/* Distributor, panels */
.distributor { display: grid; gap: 24px; align-items: center; }
@media (min-width: 700px) { .distributor { grid-template-columns: 180px 1fr; gap: 36px; } }
.distributor > img { background: #fff; border-radius: 8px; padding: 10px; width: 167px; height: auto; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: clamp(20px, 4vw, 36px); }
.buy-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 700px) { .buy-grid { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.details { margin: 24px 0; }
.details div { border-left: 2px solid var(--green-text); padding-left: 14px; margin-bottom: 16px; }
.details dt { color: var(--white); font-weight: 700; }
.details dd { margin: 0; }
.retail-note { border-top: 1px solid var(--border); padding-top: 22px; }
form label { display: block; font-weight: 700; color: var(--white); font-size: .92rem; margin-bottom: 14px; }
form input, form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; background: var(--bg); color: var(--white); border: 1px solid #555b62; border-radius: 4px; font: inherit; font-weight: 400; }
.form-error { color: #ffb4a8; border: 1px solid #ffb4a8; border-radius: 4px; padding: 10px 12px; }
.form-error a { color: inherit; }

/* Home tiles */
.tiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { position: relative; display: block; height: 280px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; color: var(--white); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.tile:hover img { opacity: 1; }
.tile span { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.tile strong { display: block; font: 800 1.2rem "Nunito Sans", sans-serif; }
.tile em { font-style: normal; font-size: .88rem; color: var(--green-text); font-weight: 700; }

/* Footer */
.footer { background: #0f1113; border-top: 1px solid var(--border); padding: 48px 0; text-align: center; font-size: .9rem; color: var(--muted); }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-bottom: 28px; }
.footer-logos img { height: 72px; width: auto; }
.footer-logos img:nth-child(2) { background: rgba(255,255,255,.06); border-radius: 4px; padding: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 22px; }
.footer-nav a { color: #b4b9bf; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer p { margin-bottom: 6px; }
.credit { font-size: .78rem; color: #80868c; }

/* Zoom */
#zoom { border: 0; padding: 0; background: #000; color: var(--white); max-width: min(92vw, 720px); max-height: 92vh; overflow: auto; border-radius: 8px; }
#zoom::backdrop { background: rgba(0,0,0,.85); }
#zoom img { width: 100%; }
#zoom p { padding: 10px 44px 12px 14px; margin: 0; font-size: .9rem; }
.zoom-close { position: sticky; float: right; top: 8px; margin: 8px 8px -48px 0; width: 40px; height: 40px; z-index: 1; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nines-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nines-photos figcaption { padding: 9px 4px; font-size: .78rem; }
  .nines-back { grid-column: 1 / -1; }
  .nines-back img { max-height: 340px; object-fit: contain; }
  .actions .btn { flex: 1 1 100%; }
}
