/* ═══════════════════════════════════════════════════════════════
   PCIC — PolymerConcrete.com
   Shared Stylesheet v2.0
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Archivo+Black&display=swap');

/* ── Hooskai Chamfered Square (self-hosted) ───────────────────
   Free, SIL OFL-licensed chamfered/octagonal display font.
   License bundled at /fonts/HooskaiChamferedSquare-LICENSE.txt.
   Source: https://fontesk.com/hooskai-chamfered-square-font/
   Archivo Black (Google Fonts) is the fallback.
   ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Hooskai Chamfered Square';
  src: url('../fonts/HooskaiChamferedSquare.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2744;
  --navy-light:  #243358;
  --navy-faint:  #1a274408;
  --gold:        #b8963e;
  --gold-light:  #d4ad5a;
  --gold-faint:  #b8963e18;
  --cream:       #f5f1ea;
  --cream-dark:  #ede8df;
  --text:        #1a1a1a;
  --text-muted:  #545454;
  --text-light:  #8a8a8a;
  --rule:        #d0c9bc;
  --tag-bg:      #e6e1d6;
  --white:       #ffffff;

  --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-pcic:    'Hooskai Chamfered Square', 'Archivo Black', 'Impact', sans-serif;

  --max-w:        1100px;
  --max-w-prose:  720px;
  --pad-x:        2rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Layout Utilities ────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background:
    radial-gradient(ellipse 70% 140% at 100% 0%, rgba(184,150,62,0.1) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
  position: relative;
  z-index: 200;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(10,15,30,0.25);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100px;
}

/* Badge logo (header) */
.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__badge-frame {
  height: 76px;
  width: 76px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__badge {
  height: 86px;
  width: 86px;
  max-width: none;
  object-fit: cover;
  flex-shrink: 0;
}

.site-logo__text {
  display: flex;
  align-items: center;
}

.site-logo__pcic {
  font-family: var(--font-pcic);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Nav — segmented pill group */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.18);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-nav a.active {
  color: var(--navy);
  background: var(--gold);
}
.site-nav a.active:hover { color: var(--navy); background: var(--gold-light); }

.nav-cta {
  background: transparent !important;
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 999px;
  margin-left: 0.35rem;
  border: 1.5px solid var(--gold);
}

.nav-cta:hover { background: rgba(184,150,62,0.15) !important; }

.nav-cta.active {
  background: var(--gold) !important;
  color: var(--navy) !important;
  box-shadow: 0 2px 10px rgba(184,150,62,0.35);
}

.nav-cta.active:hover { background: var(--gold-light) !important; }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.25rem var(--pad-x) 2.75rem;
}

.page-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  color: var(--white);
}

.page-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Section Headings ────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.2;
}

/* ── Rule ────────────────────────────────────────────────── */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ── Tags ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  background: var(--tag-bg);
  color: var(--text-muted);
  border-radius: 2px;
}

.tag--material   { background: #dce8e0; color: #2d5c3e; }
.tag--application { background: #e0e4ec; color: #2a3a6e; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-light); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); }

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem var(--pad-x) 1.75rem;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer__brand {}

.site-footer__badge {
  height: 76px;
  width: 76px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.site-footer__pcic {
  font-family: var(--font-pcic);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.site-footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.35);
}

.site-footer__nav h4,
.site-footer__contact h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}

.site-footer__nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }

.site-footer__nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__nav a:hover { color: var(--white); }

.site-footer__contact p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.4);
}

.site-footer__contact a { color: var(--gold-light); text-decoration: none; }

.site-footer__bottom {
  max-width: var(--max-w);
  margin: 1.75rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.2);
}

/* ── Mobile nav ──────────────────────────────────────────── */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  :root { --pad-x: 1.25rem; }

  .site-nav { display: none; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 1rem var(--pad-x) 1.25rem;
    z-index: 100;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav.open a { border-radius: 4px; text-align: left; }
  .site-nav.open a.active::after { display: none; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
  }

  .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-hero { padding: 2.25rem var(--pad-x) 1.75rem; }
}
