/* ============================================
   Arthur Lynch — Personal Brand Website
   Color Palette: Navy (#0A1628), White (#FFFFFF),
   Gold (#C5A55A), Slate (#3A4A5C), Light Gray (#F4F5F7)
   ============================================ */

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

:root {
  --navy: #0A1628;
  --navy-light: #132038;
  --white: #FFFFFF;
  --gold: #C5A55A;
  --gold-dark: #A8893E;
  --slate: #3A4A5C;
  --light-gray: #F4F5F7;
  --text: #1A2332;
  --text-light: #5A6A7A;
  --border: #D8DCE2;
  --shadow: 0 2px 12px rgba(10,22,40,0.08);
  --shadow-lg: 0 8px 32px rgba(10,22,40,0.12);
  --radius: 8px;
  --max-width: 1140px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 620px; margin-bottom: 2.5rem; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197,165,90,0.15);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0D1F3C 100%);
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(197,165,90,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { color: var(--white); }
.hero-content .section-label { color: var(--gold); margin-bottom: 1rem; }
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 .highlight { color: var(--gold); }
.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 2.5rem;
}
.hero-stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-headshot {
  width: 380px; height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(197,165,90,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--gold);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--light-gray);
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Career Arc (Home) --- */
.career-arc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.career-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.career-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.career-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.career-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.career-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.career-card .year { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; }

/* --- Social Feed (Home) --- */
.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.social-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}
.social-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.social-card-platform {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.social-card-handle {
  font-size: 0.8rem;
  color: var(--text-light);
}
.social-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}
.social-card .follow-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* --- About Page --- */
.about-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}
.about-hero h1 { color: var(--white); margin-bottom: 1rem; }
.about-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; }

.bio-section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.bio-section:last-child { border-bottom: none; }
.bio-section h2 { margin-bottom: 0.5rem; }
.bio-section .chapter-period {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.bio-section p { color: var(--text-light); max-width: 760px; }

.about-sidebar {
  position: sticky;
  top: 96px;
}
.about-sidebar h4 { margin-bottom: 1rem; font-size: 1rem; }
.about-sidebar ul { display: flex; flex-direction: column; gap: 8px; }
.about-sidebar a {
  display: block;
  padding: 8px 16px;
  border-left: 2px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.about-sidebar a:hover, .about-sidebar a.active {
  color: var(--gold-dark);
  border-left-color: var(--gold);
}

.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

/* --- Resume / Career Page --- */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; text-align: left; }

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 2;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.timeline-content h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.timeline-content h4 {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.timeline-content p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0; }

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.skill-tag {
  background: var(--light-gray);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  border: 1px solid var(--border);
}

/* --- News / Media Page --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card-image {
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
}
.article-card-body { padding: 24px; }
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.article-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.article-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
}
.article-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--gold-dark); }
.article-card p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0; }

/* --- Social Media Page --- */
.social-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}
.social-embed-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.social-embed-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-embed-card .embed-placeholder {
  background: var(--light-gray);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 1rem 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}
.follow-btn:hover { background: var(--gold-dark); color: var(--white); }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-detail p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-bio h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.footer-bio p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-links h4, .footer-social h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: var(--gold); }

.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Page Heroes (reusable) --- */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-image-wrapper { order: -1; }
  .hero-headshot { width: 260px; height: 260px; }

  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .about-sidebar ul { flex-direction: row; flex-wrap: wrap; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; padding-left: 50px; }
  .timeline-dot { left: 20px; }
  .timeline-content, .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content {
    width: 100%; text-align: left; margin: 0;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(197,165,90,0.15);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }

  .section { padding: 60px 0; }
  .hero { min-height: 80vh; }
  .hero-stats { gap: 24px; }

  .articles-grid { grid-template-columns: 1fr; }
  .social-embed-grid { grid-template-columns: 1fr; }
  .social-feed-grid { grid-template-columns: 1fr; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .menu-toggle, .cta-banner { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
}

/* --- News Article List (compact listing) --- */
.news-category { margin-bottom: 3rem; }
.news-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-list-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-list-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.article-list-item .source {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  flex-shrink: 0;
  min-width: 120px;
}
.article-list-item a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}
.article-list-item a:hover { color: var(--gold-dark); }

@media (max-width: 768px) {
  .article-list-item { flex-direction: column; gap: 4px; }
  .article-list-item .source { min-width: auto; }
}

/* --- Lazy load fade-in --- */
.lazy-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lazy-section.visible {
  opacity: 1;
  transform: translateY(0);
}
