/*
Theme Name: Ironfield Peptides
Theme URI: https://example.com/
Author: Ironfield
Description: A responsive black-and-red research brand theme inspired by the supplied Ironfield Peptides artwork.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ironfield
*/

:root {
  --if-bg: #050505;
  --if-panel: #0b0b0c;
  --if-panel-2: #111113;
  --if-red: #ef202b;
  --if-red-dark: #9e0c13;
  --if-white: #f5f5f5;
  --if-muted: #b5b5b8;
  --if-border: rgba(239,32,43,.32);
  --if-shadow: 0 20px 60px rgba(0,0,0,.55);
  --if-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--if-white);
  background:
    radial-gradient(circle at 75% 12%, rgba(171,0,12,.16), transparent 26rem),
    linear-gradient(180deg, #020202, var(--if-bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 36px), var(--if-max)); margin-inline: auto; }
.eyebrow { color: var(--if-red); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; }
.section-title { margin: .35rem 0 1rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; text-transform: uppercase; }
.section-copy { max-width: 720px; color: var(--if-muted); font-size: 1.05rem; }

.site-header {
  position: relative; z-index: 50;
  border-bottom: 1px solid var(--if-border);
  background: rgba(3,3,3,.9);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.brand-mark {
  width: 42px; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--if-red); color: var(--if-red);
  clip-path: polygon(50% 0, 94% 24%, 84% 82%, 50% 100%, 16% 82%, 6% 24%);
  background: linear-gradient(145deg, rgba(239,32,43,.22), rgba(0,0,0,.9));
  font-size: 1.2rem;
}
.brand small { display: block; color: var(--if-red); letter-spacing: .25em; font-size: .62rem; margin-top: -4px; }
/* The header and logo scroll normally with the page; neither is fixed or sticky. */
.brand .custom-logo-link { display:inline-flex; align-items:center; }
.brand .custom-logo { width:auto; max-height:54px; object-fit:contain; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); margin: 0; padding: 0; }
.primary-nav a { font-size: .9rem; font-weight: 800; text-transform: uppercase; position: relative; padding-block: 28px; }
.primary-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:20px; height:2px; background:var(--if-red); transition:.25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { right:0; }
.menu-toggle { display: none; color: var(--if-white); border: 1px solid var(--if-border); background: #080808; padding: 9px 12px; border-radius: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 62.5vw, 960px);
  display: block;
  background-image: url('assets/images/ironfield-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:22%;
  background:linear-gradient(transparent, rgba(0,0,0,.88));
  pointer-events:none;
}
.hero-actions { display:none; }
.hero-linkbar { border-block:1px solid rgba(239,32,43,.28); background:linear-gradient(180deg,#080808,#030303); }
.hero-linkbar-inner { min-height:88px; display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; padding-block:18px; }
.hero-linkbar .btn { box-shadow:0 12px 35px rgba(0,0,0,.45); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 20px; border:1px solid var(--if-red); font-weight:850; text-transform:uppercase; letter-spacing:.03em; transition:.2s ease; }
.btn-primary { background: var(--if-red); color:white; }
.btn-primary:hover { background:#ff3540; transform:translateY(-2px); }
.btn-ghost:hover { background:rgba(239,32,43,.12); transform:translateY(-2px); }

.trust-strip { border-block: 1px solid rgba(255,255,255,.08); background:#060606; }
.trust-grid { display:grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 25px 22px; border-right: 1px solid rgba(255,255,255,.1); }
.trust-item:last-child { border-right:0; }
.trust-item strong { display:block; text-transform:uppercase; font-size:.95rem; }
.trust-item span { color:var(--if-muted); font-size:.9rem; }
.trust-icon { color:var(--if-red); font-size:1.45rem; margin-bottom:7px; }

.section { padding: 100px 0; }
.section-dark { background: linear-gradient(180deg, #080808, #030303); }
.product-grid { margin-top: 36px; display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.product-card { position:relative; overflow:hidden; min-height:360px; padding:26px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(145deg,#141416,#070707); box-shadow:var(--if-shadow); }
.product-card::before { content:""; position:absolute; inset:-40% auto auto -25%; width:220px; aspect-ratio:1; background:radial-gradient(circle, rgba(239,32,43,.25), transparent 66%); }
.product-card .number { color:rgba(255,255,255,.08); font-size:5.5rem; font-weight:950; line-height:1; position:absolute; right:18px; top:10px; }
.product-card h3 { position:relative; margin:105px 0 8px; font-size:1.55rem; text-transform:uppercase; }
.product-card p { position:relative; color:var(--if-muted); }
.product-card a { position:absolute; left:26px; bottom:24px; color:var(--if-red); font-weight:800; text-transform:uppercase; }

.split { display:grid; grid-template-columns: 1.05fr .95fr; gap:64px; align-items:center; }
.lab-panel { min-height:470px; border:1px solid var(--if-border); position:relative; overflow:hidden; background:
  linear-gradient(135deg, rgba(239,32,43,.08), transparent 48%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px), #080808;
}
.lab-panel::before { content:"Fe"; position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); font-size:10rem; font-weight:950; color:rgba(239,32,43,.14); border:2px solid rgba(239,32,43,.25); width:220px; aspect-ratio:1; display:grid; place-items:center; }
.lab-panel::after { content:"26  •  IRON  •  55.845"; position:absolute; bottom:28px; left:28px; color:var(--if-red); letter-spacing:.2em; font-weight:800; }
.checks { display:grid; gap:14px; margin-top:26px; }
.check { display:flex; gap:12px; align-items:flex-start; padding:16px 18px; border-left:2px solid var(--if-red); background:#0c0c0d; }
.check b { display:block; text-transform:uppercase; }
.check span { color:var(--if-muted); font-size:.92rem; }

.cta { padding:44px; border:1px solid var(--if-border); background:linear-gradient(120deg, rgba(239,32,43,.19), rgba(5,5,5,.9) 45%); display:flex; align-items:center; justify-content:space-between; gap:28px; }
.cta h2 { margin:0 0 6px; text-transform:uppercase; font-size:clamp(1.8rem, 3.5vw, 3rem); }
.cta p { margin:0; color:var(--if-muted); }

.site-footer { border-top:1px solid var(--if-border); background:#020202; padding:58px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer-title { text-transform:uppercase; font-size:.85rem; letter-spacing:.12em; margin:0 0 14px; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:8px; color:var(--if-muted); }
.disclaimer { color:#9d9da0; font-size:.82rem; max-width:620px; }
.footer-bottom { margin-top:38px; padding-top:22px; border-top:1px solid rgba(255,255,255,.08); color:#777; font-size:.82rem; display:flex; justify-content:space-between; gap:20px; }

.entry-content { width:min(calc(100% - 36px), 900px); margin:70px auto; }
.entry-content h1 { text-transform:uppercase; }

@media (max-width: 900px) {
  .menu-toggle { display:block; }
  .primary-nav { display:none; position:absolute; left:0; right:0; top:78px; background:#050505; border-bottom:1px solid var(--if-border); }
  .primary-nav.is-open { display:block; }
  .primary-nav ul { display:grid; gap:0; padding:12px 18px 20px; }
  .primary-nav a { display:block; padding:13px 4px; }
  .primary-nav a::after { bottom:7px; }
  .hero { min-height:clamp(500px, 72vw, 760px); background-position:center center; }
  .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(255,255,255,.1); }
  .product-grid { grid-template-columns:1fr 1fr; }
  .split { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px) {
  .brand-text { display:none; }
  .hero { min-height:520px; background-position:center center; }
  .hero-linkbar-inner { flex-direction:column; align-items:stretch; }
  .trust-grid, .product-grid, .footer-grid { grid-template-columns:1fr; }
  .trust-item { border-right:0; border-bottom:1px solid rgba(255,255,255,.1); }
  .section { padding:72px 0; }
  .cta { align-items:flex-start; flex-direction:column; padding:30px 24px; }
  .footer-bottom { flex-direction:column; }
}

/* Interactive catalog */
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.trust-item { display:block; transition:background .2s ease, transform .2s ease; }
.trust-item:hover { background:rgba(239,32,43,.06); transform:translateY(-2px); }
.catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:34px 0 28px; flex-wrap:wrap; }
.catalog-search { flex:1 1 280px; }
.catalog-search input { width:100%; min-height:48px; border:1px solid rgba(255,255,255,.15); background:#0a0a0b; color:#fff; padding:0 16px; outline:none; }
.catalog-search input:focus { border-color:var(--if-red); box-shadow:0 0 0 3px rgba(239,32,43,.13); }
.catalog-filters { display:flex; gap:8px; flex-wrap:wrap; }
.filter-button { min-height:42px; border:1px solid rgba(255,255,255,.14); background:#0a0a0b; color:#ddd; padding:0 14px; cursor:pointer; text-transform:uppercase; font-size:.76rem; font-weight:800; letter-spacing:.05em; }
.filter-button:hover, .filter-button.is-active { border-color:var(--if-red); background:var(--if-red); color:#fff; }
.peptide-grid { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:18px; }
.peptide-card { min-width:0; }
.peptide-card[hidden] { display:none; }
.peptide-card-button { position:relative; width:100%; min-height:430px; overflow:hidden; border:1px solid rgba(255,255,255,.12); background:linear-gradient(150deg,#171719,#050505 65%); color:#fff; padding:22px 18px; text-align:left; cursor:pointer; display:flex; flex-direction:column; align-items:center; box-shadow:var(--if-shadow); transition:transform .22s ease, border-color .22s ease; }
.peptide-card-button::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 30%, rgba(239,32,43,.19), transparent 42%); pointer-events:none; }
.peptide-card-button:hover, .peptide-card-button:focus-visible { transform:translateY(-6px); border-color:var(--if-red); outline:none; }
.peptide-index { position:absolute; top:10px; right:14px; color:rgba(255,255,255,.08); font-size:3rem; font-weight:950; }
.vial-art { position:relative; width:105px; height:190px; margin:18px auto 16px; border:3px solid #555; border-radius:16px 16px 22px 22px; background:linear-gradient(90deg,#080808,#3e080c 45%,#090909 80%); box-shadow:inset 0 0 18px rgba(255,255,255,.13), 0 18px 28px rgba(0,0,0,.55); }
.vial-cap { position:absolute; left:-7px; right:-7px; top:-17px; height:31px; border:2px solid #555; border-radius:8px; background:repeating-linear-gradient(90deg,#111 0 3px,#333 3px 5px); }
.vial-label { position:absolute; left:6px; right:6px; top:54px; min-height:82px; display:grid; place-content:center; text-align:center; border-block:1px solid #7b151b; background:#0a0a0a; }
.vial-label b { font-size:.76rem; letter-spacing:.04em; }
.vial-label small { color:var(--if-red); letter-spacing:.2em; font-size:.48rem; }
.peptide-category { position:relative; color:var(--if-muted); text-transform:uppercase; font-size:.68rem; letter-spacing:.12em; text-align:center; }
.peptide-name { position:relative; margin-top:5px; color:var(--if-red); font-size:1.35rem; line-height:1.15; text-align:center; text-transform:uppercase; }
.peptide-size { position:relative; margin-top:7px; font-weight:800; }
.peptide-link { position:relative; margin-top:auto; padding-top:15px; color:#fff; font-size:.8rem; font-weight:800; text-transform:uppercase; }
.catalog-empty { border:1px solid var(--if-border); padding:25px; color:var(--if-muted); text-align:center; }
.check { color:inherit; transition:background .2s ease; }
.check:hover { background:#141416; }
.peptide-modal[hidden] { display:none; }
.peptide-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; }
.peptide-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.84); backdrop-filter:blur(7px); }
.peptide-modal-dialog { position:relative; z-index:1; width:min(620px,100%); border:1px solid var(--if-border); background:linear-gradient(145deg,#151517,#050505); padding:42px; box-shadow:0 30px 100px #000; }
.peptide-modal-dialog h2 { margin:.3rem 0 0; color:var(--if-red); text-transform:uppercase; font-size:clamp(2.2rem,6vw,4rem); line-height:1; }
.modal-size { margin:.45rem 0 1.2rem; font-size:1.25rem; font-weight:850; }
.modal-notice { margin:22px 0; padding:14px 16px; border-left:3px solid var(--if-red); background:#0b0b0c; color:var(--if-muted); }
.modal-notice strong { color:#fff; }
.modal-close { position:absolute; top:10px; right:14px; width:40px; height:40px; border:0; background:transparent; color:#fff; font-size:2rem; cursor:pointer; }
.modal-close:hover { color:var(--if-red); }
.modal-open { overflow:hidden; }
@media (max-width:1100px) { .peptide-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px) { .peptide-grid { grid-template-columns:repeat(2,1fr); } .peptide-modal-dialog { padding:34px 24px 26px; } }
@media (max-width:480px) { .peptide-grid { grid-template-columns:1fr; } .peptide-card-button { min-height:405px; } .catalog-filters { width:100%; } .filter-button { flex:1 1 calc(50% - 8px); } }

/* Anchor navigation */
html { scroll-behavior:smooth; }
#home, #catalog, #quality, #research, #contact, #disclaimer { scroll-margin-top:90px; }
