/* ═══════════════════════════════════════════
   PEMAI — Shared Design System
   Theme: Industrial Precision / Dark Steel + Gold
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Mulish:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C8973A;
  --gold-light:  #E5B95A;
  --gold-dim:    rgba(200,151,58,0.12);
  --gold-border: rgba(200,151,58,0.22);
  --steel:       #2A3140;
  --dark:        #0B0C0E;
  --dark2:       #111316;
  --dark3:       #181C21;
  --dark4:       #1F242B;
  --dark5:       #262D36;
  --text:        #E4E6E8;
  --text-muted:  #7A8290;
  --text-dim:    #505866;
  --ff-head:     'Barlow Condensed', sans-serif;
  --ff-body:     'Mulish', sans-serif;
  --max-w:       1200px;
  --radius:      10px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  opacity: 1;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.05;
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5%;
}
.section { padding: 6rem 0; position: relative; z-index: 1; }
.section-alt { background: var(--dark2); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); }

/* ── LABELS ── */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: '—— ';
  opacity: .5;
}

/* ── HEADINGS ── */
.h-xl {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
}
.h-lg {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
}
.h-md {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
}
.accent { color: var(--gold); }
.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 540px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 0 30px rgba(200,151,58,.2);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(200,151,58,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold-border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── CARDS ── */
.card {
  background: var(--dark3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,151,58,.1);
}

/* ── NAV ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,12,14,.9);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--gold-border);
  transition: padding var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 5%;
}
.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo span { color: var(--text); opacity: .4; font-weight: 400; font-size: 1rem; margin-left: .3rem; vertical-align: middle; }
.nav-links {
  display: flex; gap: .2rem; align-items: center;
}
.nav-links a {
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .5rem 1rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active { background: var(--gold-dim); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: .55rem 1.4rem !important;
  border-radius: 4px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(11,12,14,.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: .06em;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute; top: 1.5rem; right: 5%;
  background: none; border: none; color: var(--text);
  font-size: 2rem; cursor: pointer;
}

/* ── PAGE HEADER ── */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--dark2);
  border-bottom: 1px solid var(--gold-border);
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,151,58,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,151,58,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
}
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-family: var(--ff-head);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--gold); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: .7; }
.breadcrumb-sep { color: var(--text-dim); }

/* ── FOOTER ── */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--gold-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gold-border);
}
.footer-brand-name {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .8rem;
}
.footer-brand-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--ff-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links-list { display: flex; flex-direction: column; gap: .7rem; }
.footer-links-list a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links-list a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .7rem;
}
.footer-contact-item a { color: var(--text-muted); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .8rem; color: var(--text-dim); }

/* ── DIVIDER ── */
.gold-line {
  display: block;
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 1.2rem 0 1.8rem;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--ff-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── PHONE FAB ── */
.phone-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 56px; height: 56px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 24px rgba(200,151,58,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.phone-fab:hover { transform: scale(1.1); box-shadow: 0 6px 36px rgba(200,151,58,.5); }

/* ── STAT ROW ── */
.stat-row {
  display: flex; gap: 3rem; flex-wrap: wrap;
}
.stat-block {}
.stat-num {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  font-family: var(--ff-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 4rem 0; }
}
