/* ============================================
   Michelle DeCecco - Personal Brand Design System
   Premium mining executive aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette - deep navy + gold */
  --color-ink: #0B1D2E;
  --color-ink-soft: #1A2F42;
  --color-ink-muted: #3D5A73;
  --color-surface: #FAFAF8;
  --color-surface-warm: #F5F3EF;
  --color-surface-alt: #EDE9E3;
  --color-gold: #B8923F;
  --color-gold-light: #D4AF5C;
  --color-gold-deep: #96762E;
  --color-white: #FFFFFF;
  --color-text: #1A2F42;
  --color-text-secondary: #5A7186;
  --color-text-light: #8A9DAD;
  --color-border: #D8D3CC;
  --color-border-light: #E8E4DE;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-surface);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold-deep); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-gold); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-hero); margin-bottom: var(--space-6); }
h2 { font-size: var(--text-4xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-3); }

p { margin-bottom: var(--space-6); max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 55ch;
}

.ticker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gold);
  background: rgba(184, 146, 63, 0.08);
  padding: var(--space-1) var(--space-2);
  border-radius: 3px;
  font-weight: 500;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: var(--max-width-narrow); }
.container--wide { max-width: var(--max-width-wide); }

.section {
  padding: var(--space-section) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 29, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 146, 63, 0.15);
  padding: var(--space-4) 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.nav-name span {
  color: var(--color-gold);
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--duration-fast) var(--ease-out);
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--duration-base) var(--ease-out);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-ink);
  z-index: 99;
  padding: 6rem var(--gutter) var(--gutter);
}

.mobile-menu.active { display: flex; flex-direction: column; gap: var(--space-6); }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-white);
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-ink);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--color-ink) 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-content { order: 2; }
@media (min-width: 768px) { .hero-content { order: 1; } }

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.hero h1 .gold { color: var(--color-gold); }

.hero .lead {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
}

.hero-roles {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-role {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.hero-role .dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-image {
  order: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) { .hero-image { order: 2; justify-content: flex-end; } }

.hero-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 60px rgba(184, 146, 63, 0.15);
}

@media (min-width: 768px) {
  .hero-image img { width: 360px; height: 360px; }
}

/* --- Stat Bar --- */
.stat-bar {
  background: var(--color-ink-soft);
  border-top: 1px solid rgba(184, 146, 63, 0.1);
  border-bottom: 1px solid rgba(184, 146, 63, 0.1);
  padding: var(--space-10) 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gold);
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-2);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: var(--space-8);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(184, 146, 63, 0.08);
}

.card-dark {
  background: var(--color-ink-soft);
  border-color: rgba(184, 146, 63, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.card-dark h3 { color: var(--color-white); }
.card-dark:hover { border-color: var(--color-gold); }

/* --- Timeline --- */
.timeline { position: relative; padding-left: var(--space-8); }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-border));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--color-gold);
  border-radius: 50%;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.timeline-role { font-weight: 600; color: var(--color-ink); }
.timeline-company { color: var(--color-text-secondary); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-6);
  border: 2px solid;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.btn-gold:hover {
  background: var(--color-gold-deep);
  border-color: var(--color-gold-deep);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-white-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.btn-white-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* --- Gold Rule --- */
.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  border: none;
  margin-bottom: var(--space-6);
}

/* --- Section Themes --- */
.section--dark {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.8);
}

.section--dark h2,
.section--dark h3 { color: var(--color-white); }

.section--warm { background: var(--color-surface-warm); }
.section--alt { background: var(--color-surface-alt); }

/* --- Footer --- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 2px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-3); }
.footer-links a { color: rgba(255, 255, 255, 0.5); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--color-gold); }

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  max-width: 60ch;
  line-height: 1.6;
  margin-top: var(--space-6);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Print --- */
@media print {
  .site-nav, .site-footer, .btn { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  h1, h2, h3 { color: #000; }
  .hero { min-height: auto; background: #fff; color: #000; padding: 2rem 0; }
  .hero h1 { color: #000; }
  .section { padding: 1rem 0; }
}

/* --- Mobile Refinements (Job 4) --- */
@media (max-width: 767px) {
  .hero { min-height: auto; padding: 6rem 0 var(--space-12); }
  .hero h1 { font-size: var(--text-4xl); }
  .hero .lead { font-size: var(--text-base); }
  .hero-image img { width: 200px; height: 200px; }

  .stat-grid { gap: var(--space-6); }
  .stat-number { font-size: var(--text-3xl); }

  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }

  .section { padding: var(--space-12) 0; }

  .card { padding: var(--space-6); }

  .footer-grid { gap: var(--space-8); }
  .footer-disclaimer { font-size: 0.65rem; }

  .btn { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); }

  /* Timeline mobile */
  .timeline { padding-left: var(--space-6); }
  .timeline-item::before { left: calc(-1 * var(--space-6) - 4px); }

  /* Press kit quick facts mobile */
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.25rem !important;
  }
}

/* --- FAQ Styles --- */
.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-6) 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  padding: 0;
  line-height: 1.3;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  padding-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-top: var(--space-4);
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* --- News Card Styles --- */
.news-date-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 500;
}
