/* ═══════════════════════════════════════════════════════
   Andrew Evans — Personal Website
   Design: Forest green + Clemson orange + River blue
   ═══════════════════════════════════════════════════════ */

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

/* ── CSS Custom Properties ─────────────────────────── */
:root {
  --green:        #2D5016;
  --green-dark:   #1e3610;
  --green-mid:    #3d6b1f;
  --green-light:  #e8f0dd;
  --orange:       #F66733;
  --orange-dark:  #d95720;
  --orange-light: #fff3ed;
  --blue:         #4A7FA5;
  --blue-light:   #e8f2f8;
  --cream:        #F8F4EF;
  --cream-dark:   #EFE9E0;
  --text:         #1A1A1A;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;
  --card:         #ffffff;
  --border:       #E8E2D9;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 30px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.07);
  --radius:       0.75rem;
  --radius-sm:    0.5rem;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { line-height: 1.7; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
}

/* ── Layout ────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Navigation ────────────────────────────────────── */
#site-nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  overflow-x: auto;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--orange); }

.nav-resume {
  flex-shrink: 0;
  background: var(--orange);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.875rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
}
.nav-resume:hover { background: var(--orange-dark) !important; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: white;
  margin-left: auto;
}

@media (max-width: 640px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 3.5rem; left: 0; right: 0; background: var(--green-dark); flex-direction: column; gap: 0; padding: 0.5rem; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.625rem 1rem; border-radius: 0.375rem; }
  .nav-resume { display: none; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--green-dark) 0%, #2a4a10 50%, var(--green) 100%);
  position: relative;
  overflow: hidden;
  color: white;
  padding: 6rem 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 70% 30%, rgba(246,103,51,0.18) 0%, transparent 60%),
                    radial-gradient(ellipse at 20% 80%, rgba(74,127,165,0.15) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--orange); margin-bottom: 1rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255,255,255,0.75); max-width: 580px; margin-bottom: 2rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.hero-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }

.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--cream); color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-body { padding: 1.5rem; }

/* Project card */
.project-card { transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.project-card .card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .card-thumb .thumb-icon { font-size: 3rem; }

.project-card .card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.375rem;
}

.project-card h3 { margin-bottom: 0.375rem; }
.project-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Section Headers ───────────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 560px; }

/* ── Accent / Decorative ───────────────────────────── */
.accent-bar { width: 3rem; height: 3px; background: var(--orange); border-radius: 2px; margin: 0.75rem 0; }

/* ── Divider ───────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Tag / Badge ───────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.tag-green { background: var(--green-light); color: var(--green); }
.tag-orange { background: var(--orange-light); color: var(--orange-dark); }
.tag-blue { background: var(--blue-light); color: var(--blue); }

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.site-footer h4 { color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 0.75rem; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Grid Utilities ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Pillar Cards (Home) ───────────────────────────── */
.pillar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  color: white;
}
.pillar-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pillar h3 { font-size: 1.125rem; margin-bottom: 0.375rem; color: white; }
.pillar p { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* ── Page Hero (inner pages) ───────────────────────── */
.page-hero {
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green) 100%);
  color: white;
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: white; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 640px; margin-top: 0.75rem; }

/* ── Timeline (Work page) ──────────────────────────── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0.375rem;
  bottom: 0.375rem;
  width: 2px;
  background: var(--border);
}
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2.5rem; position: relative; }
.timeline-dot {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}
.timeline-content { flex: 1; padding-top: 0.25rem; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.25rem; }
.timeline-content h3 { margin-bottom: 0.125rem; }
.timeline-content .org { font-size: 0.9rem; color: var(--orange); font-weight: 600; margin-bottom: 0.75rem; }

/* ── Project detail page ───────────────────────────── */
.project-detail-hero {
  background: var(--green-dark);
  color: white;
  padding: 3.5rem 0 3rem;
}
.project-detail-hero h1 { color: white; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.role-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(246,103,51,0.2);
  border: 1px solid rgba(246,103,51,0.4);
  color: #ffa87a;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ── Asset links ───────────────────────────────────── */
.asset-list { display: flex; flex-direction: column; gap: 0.625rem; }
.asset-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.asset-link:hover { background: var(--cream-dark); border-color: var(--orange); }
.asset-icon { color: var(--orange); font-size: 1.125rem; flex-shrink: 0; }

/* ── Info grid (About page) ────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }

/* ── Award chips ───────────────────────────────────── */
.award {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cream);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.award-icon { font-size: 1.5rem; flex-shrink: 0; }
.award p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.award strong { display: block; color: var(--text); font-size: 0.9rem; }

/* ── Reading section ───────────────────────────────── */
.reading-item {
  border-left: 3px solid var(--green-light);
  padding: 0.625rem 1rem;
  margin-bottom: 0.75rem;
}
.reading-item strong { display: block; font-size: 0.9rem; color: var(--green); }
.reading-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ── S4S page ──────────────────────────────────────── */
.initiative-card {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
}
.initiative-card h4 { margin-bottom: 0.5rem; }
.initiative-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Green Infra page ──────────────────────────────── */
.gi-practice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
}
.gi-practice-icon { font-size: 1.25rem; flex-shrink: 0; }
.gi-practice p { font-size: 0.875rem; margin: 0; }
.gi-practice strong { display: block; color: var(--green); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.125rem; }

/* ── Things I Love ─────────────────────────────────── */
.love-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.love-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.love-card-org { border-top: 3px solid var(--orange); }
.love-card-idea { border-top: 3px solid var(--blue); }
.love-card h4 { margin: 0.625rem 0 0.375rem; }
.love-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Connect page ──────────────────────────────────── */
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.contact-link:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.contact-link-icon {
  width: 3rem; height: 3rem;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-link strong { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.125rem; }
.contact-link span { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ── Placeholder notice ────────────────────────────── */
.placeholder-notice {
  background: #fffbeb;
  border: 1px dashed #d97706;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #92400e;
  margin-top: 1rem;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c5bfb6; }

/* ── Utility ───────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
