/* ============================================
   David Lindahl — Personal Brand Site
   Colors: Navy #0d1f3c / Gold #D4A574
   ============================================ */

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

:root {
  --navy: #0d1f3c;
  --navy-light: #142a4f;
  --navy-dark: #091428;
  --gold: #D4A574;
  --gold-light: #e8c9a6;
  --gold-dark: #b88a5a;
  --cream: #f5f0eb;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --border: #e0d8d0;
  --max-width: 1100px;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- Header / Nav --- */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

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

.site-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .5px;
}
.site-logo:hover { color: var(--gold-light); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: .3s; }

.site-nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .2s;
}
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: .5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--gold-light); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero h1 {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: .75rem;
  letter-spacing: 1px;
}
.hero .tagline {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: rgba(255,255,255,.8);
  font-style: italic;
  margin-bottom: 2rem;
}
.hero .intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
}
.hero .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--gold); }
.btn-navy:hover { background: var(--navy-light); color: var(--gold-light); }

/* --- Pillars Section --- */
.pillars {
  padding: 5rem 0;
  background: var(--cream);
}
.pillars h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: .5rem;
}
.pillars .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.pillar-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-top: 3px solid var(--gold);
}
.pillar-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pillar-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.pillar-card p { font-size: .92rem; color: var(--text-light); line-height: 1.65; }

/* --- Newsletter / CTA Section --- */
.newsletter-section {
  padding: 5rem 0;
  text-align: center;
  background: var(--white);
}
.newsletter-section h2 { font-size: 2rem; margin-bottom: .75rem; }
.newsletter-section p { color: var(--text-light); max-width: 560px; margin: 0 auto 2rem; }
.newsletter-form {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: .85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: Georgia, serif;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

/* --- Blog CTA on Home --- */
.blog-cta {
  padding: 4rem 0;
  background: var(--navy);
  text-align: center;
  color: var(--white);
}
.blog-cta h2 { color: var(--gold); font-size: 1.75rem; margin-bottom: .75rem; }
.blog-cta p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }

/* --- Blog Listing --- */
.blog-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.blog-header h1 { color: var(--gold); font-size: 2.5rem; margin-bottom: .5rem; }
.blog-header p { color: rgba(255,255,255,.7); font-size: 1.1rem; }

.blog-grid {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.blog-card .date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold-dark); }
.blog-card .excerpt { font-size: .92rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }
.blog-card .read-more {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.blog-card .read-more:hover { color: var(--navy); }

/* --- Article Page --- */
.article-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.article-header h1 { color: var(--gold); font-size: 2.2rem; margin-bottom: .75rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.article-meta span { margin: 0 .5rem; }

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 .75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--navy); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream);
  font-style: italic;
  color: var(--text-light);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Article CTA --- */
.article-cta {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.article-cta h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.article-cta p { color: var(--text-light); margin-bottom: 1.5rem; }

/* --- About Page --- */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.about-hero h1 { color: var(--gold); font-size: 2.5rem; margin-bottom: .5rem; }
.about-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; }

.about-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.about-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.about-content p { margin-bottom: 1.25rem; }

.photo-placeholder {
  width: 220px;
  height: 280px;
  background: var(--cream);
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .85rem;
  margin: 2rem auto;
}

.timeline {
  margin: 3rem 0;
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
}
.timeline-item { margin-bottom: 2rem; position: relative; }
.timeline-item::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  left: -2.45rem;
  top: .35rem;
}
.timeline-item .year {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: .9rem;
  margin-bottom: .25rem;
}
.timeline-item p { font-size: .95rem; color: var(--text-light); }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.5);
  padding: 3rem 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .85rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { margin-bottom: 1rem; }
.footer-links a { margin: 0 1rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .blog-grid { padding: 2rem 0; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem 0; }
  .site-nav.active { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0 1.5rem; }
  .site-nav li { padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.1); }

  .article-header h1 { font-size: 1.6rem; }
  .about-hero h1 { font-size: 1.8rem; }
}
