/* ==========================================================================
   Powerhouse PNW - Global Design System & Core Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Surface & Background Colors */
  --bg-primary: #0A0F16;       /* Deep slate night */
  --bg-secondary: #121A24;     /* Elevated panel surface */
  --bg-card: #16202C;          /* Card & container background */
  --bg-card-hover: #1D2A3A;    /* Card hover elevation */
  --bg-translucent: rgba(16, 24, 34, 0.85);

  /* Brand Accent Colors */
  --accent-gold: #F5BA13;      /* Lightning bolt gold */
  --accent-gold-hover: #E5A805;/* Darker gold for active states */
  --accent-gold-light: #FFDD55;
  --accent-gold-glow: rgba(245, 186, 19, 0.22);
  --accent-gold-subtle: rgba(245, 186, 19, 0.1);

  /* PNW Alpine Blues */
  --pnw-blue: #3E73A0;         /* Mountain ridge slate-blue */
  --pnw-blue-dark: #223B52;    /* Shadowed mountain base */
  --pnw-blue-light: #7BAFD4;   /* Glacier ice highlight */
  --pnw-blue-glow: rgba(62, 115, 160, 0.2);

  /* Text & Typography */
  --text-primary: #F3F7FA;     /* High contrast crisp white */
  --text-secondary: #94A3B8;   /* Slate gray for body and descriptions */
  --text-muted: #64748B;       /* Tertiary captions & metadata */

  /* Borders & Lines */
  --border-subtle: #233446;    /* Subtle structural lines */
  --border-medium: #2F455C;
  --border-highlight: rgba(245, 186, 19, 0.35); /* Accent gold borders */

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold-glow: 0 0 24px rgba(245, 186, 19, 0.25);
  --shadow-blue-glow: 0 0 30px rgba(62, 115, 160, 0.15);

  /* Typography Families */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(62, 115, 160, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(245, 186, 19, 0.04), transparent);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--bg-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-icon {
  transform: scale(1.05);
}

.brand-text-accent {
  color: var(--accent-gold);
  margin-left: 0.35rem;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-gold);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-secondary);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
}

.mobile-nav-link.active {
  color: var(--accent-gold);
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 340px;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-contact-link {
  color: var(--accent-gold);
  font-weight: 500;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-pedigree {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--pnw-blue-light);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
