/* ============================================
   anthonycorin.com — Design System
   Reputation defense. Dark. Gold accent. Factual.
   ============================================ */

/* 1. Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 2. Custom Properties */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --accent: #c9a96e;
  --accent-dim: #8b7348;
  --text-primary: #e8e6e3;
  --text-secondary: #a8a6a3;
  --text-muted: #6b6a67;
  --border: #222230;
  --success: #4ade80;
  --danger: #ef4444;
  --danger-dim: #7f1d1d;

  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --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: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --container-max: 1100px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

h2 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
h3 { font-size: var(--text-xl); margin-bottom: var(--space-md); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #dbb978; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-primary); font-weight: 600; }

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

/* 4. Utility Classes */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: #dbb978;
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(201,169,110,0.08);
  color: var(--accent);
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* 5. Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

/* 6. Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.hero .subtitle {
  font-size: var(--text-xl);
  color: var(--accent);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.hero .summary {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: var(--text-sm);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* 7. Media Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.media-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition);
}

.media-card:hover {
  border-color: var(--accent-dim);
}

.media-card .pub {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.media-card .date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.media-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.media-card .wrong-list {
  list-style: none;
  padding: 0;
}

.media-card .wrong-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.media-card .wrong-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

/* 8. Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-dim);
  z-index: 1;
}

.timeline-item.event-critical .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(201,169,110,0.3);
}

.timeline-item.event-danger .timeline-dot {
  background: var(--danger);
  border-color: var(--danger);
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--accent-dim);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* 9. Evidence Cards */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.evidence-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.evidence-card .icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.evidence-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.evidence-card .claim {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.evidence-card .fact {
  font-size: var(--text-sm);
  color: var(--success);
  font-weight: 500;
}

/* 10. Beachcroft Section */
.beachcroft-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote-block {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--danger);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block .quote-text {
  font-size: var(--text-xl);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.quote-block .quote-attrib {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.fact-item {
  text-align: center;
  padding: var(--space-lg);
}

.fact-item .number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.fact-item .label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* 11. Bio / Track Record */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.bio-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.bio-card .year {
  font-size: var(--text-xs);
  color: var(--accent-dim);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.bio-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.bio-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* 12. Financial Statement */
.financial-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.financial-card .stamp {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.financial-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
}

.financial-row.total {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-base);
  border-bottom: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--border);
}

.financial-row.net {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--danger);
  border-top: 2px solid var(--danger-dim);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

/* 13. Final Word */
.final-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.final-section h2 {
  margin-bottom: var(--space-xl);
}

.final-section p {
  font-size: var(--text-lg);
  line-height: 1.8;
}

/* 14. Contact Form */
.contact-form {
  max-width: 500px;
  margin: var(--space-2xl) auto 0;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* 15. Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer .tagline {
  font-style: italic;
  color: var(--text-muted);
}

/* 16. Responsive */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-3xl: 1.75rem;
    --space-4xl: 3rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: var(--text-xl);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-scroll { display: none; }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }
}
