@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy: #0f2044;
  --gold: #c9a84c;
  --gold-light: #f0d98a;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #5a6070;
  --border: #e2ddd0;
  --accent-bg: #f5f0e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
  padding: 1rem 0;
  text-decoration: none;
}
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  color: #ccd6f6;
  text-decoration: none;
  padding: 1rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(201,168,76,0.06);
}
.hero-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  color: #a8b8d8;
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── SECTIONS ── */
.section { padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; }
.section-sm { padding: 3rem 2rem; max-width: 1000px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-title span { color: var(--gold); }
.divider {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 1rem 0 2rem;
}

/* ── PRINCIPLES CARDS ── */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.principle-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.75rem;
}
.principle-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.principle-card .scripture {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.principle-card p { font-size: 0.9rem; color: var(--muted); }

/* ── PROJECT CARDS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}
.project-card:hover { transform: translateY(-3px); }
.project-card-header {
  background: var(--navy);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.project-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.project-card-header h3 { color: white; font-size: 1rem; font-weight: 500; }
.project-card-body { padding: 1.25rem 1.5rem; }
.project-card-body p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag {
  background: var(--accent-bg);
  color: var(--navy);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.project-reflection {
  background: var(--accent-bg);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* ── SPIRITUAL ITEMS ── */
.spiritual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.spiritual-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.spiritual-card .category-badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.spiritual-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.spiritual-card p { font-size: 0.875rem; color: var(--muted); }

/* ── ETHICS SECTION ── */
.ethics-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.ethics-box h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ethics-box ul { padding-left: 1.25rem; }
.ethics-box ul li { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ── RESUME ── */
.resume-section { margin-bottom: 2rem; }
.resume-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.resume-item { margin-bottom: 1.25rem; }
.resume-item h4 { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.resume-item .meta { font-size: 0.8rem; color: var(--gold); margin-bottom: 0.4rem; }
.resume-item p, .resume-item li { font-size: 0.875rem; color: var(--muted); }
.resume-item ul { padding-left: 1.2rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill {
  background: var(--navy);
  color: #ccd6f6;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}
.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.contact-card h4 { color: var(--navy); font-size: 1rem; margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.875rem; color: var(--muted); }
.contact-card a { color: var(--gold); text-decoration: none; }

/* ── JOURNAL ── */
.journal-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.journal-entry p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.journal-entry p:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: #a8b8d8;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--gold);
}
footer span { color: var(--gold); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.page-header p { color: #a8b8d8; margin-top: 0.5rem; font-size: 0.95rem; }

/* ── QUOTE BLOCK ── */
.quote-block {
  background: var(--accent-bg);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}
.quote-block cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

/* ── REFERENCES ── */
.references { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; }
.references h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 1rem; }
.references p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; padding-left: 2rem; text-indent: -2rem; }

@media (max-width: 640px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 0.4rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a {
    font-size: 0.75rem;
    padding: 0.6rem 0.6rem;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; padding: 0.9rem 1.5rem; font-size: 1rem; }
  .section { padding: 2.5rem 1.25rem; }
  .principles-grid, .projects-grid, .spiritual-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* ── PROJECT DETAIL PAGES ── */
.project-detail-hero {
  background: var(--navy);
  padding: 3rem 2rem;
  border-bottom: 3px solid var(--gold);
}
.project-detail-hero h1 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.project-detail-hero p { color: #a8b8d8; font-size: 0.95rem; }
.project-meta-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.project-meta-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.meta-item { font-size: 0.82rem; color: var(--muted); }
.meta-item strong { color: var(--navy); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; }
.detail-section { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }
.detail-section + .detail-section { padding-top: 0; }
.lesson-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.lesson-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.lesson-card p { font-size: 0.875rem; color: var(--muted); }
.arch-box {
  background: #1e1e2e;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #a8d8a8;
  margin: 1rem 0;
  overflow-x: auto;
  line-height: 1.7;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.problem-card .problem-num {
  display: inline-block;
  background: #c0392b;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}
.problem-card .solution-num {
  display: inline-block;
  background: #27ae60;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}
.problem-card h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 0.3rem; }
.problem-card p { font-size: 0.85rem; color: var(--muted); }
.project-nav-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  touch-action: manipulation;
}
.project-nav-btn:hover { background: #1a3a6b; }
.medium-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.medium-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.medium-card .read-time { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.medium-card h4 { font-size: 1rem; color: var(--navy); font-family: 'Playfair Display', serif; margin-bottom: 0.5rem; line-height: 1.4; }
.medium-card p { font-size: 0.85rem; color: var(--muted); }
.medium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
