/* ============================================================
   DAKOTA M. CHURCHILL — Professional Website
   Palette: #1F4C34 (forest green) · #F9F7EB (warm cream)
   ============================================================ */

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

:root {
  --green:      #1F4C34;
  --green-mid:  rgba(31, 76, 52, 0.85);
  --green-soft: rgba(31, 76, 52, 0.08);
  --cream:      #F9F7EB;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --text-muted: #5c6470;
  --border:     rgba(31, 76, 52, 0.14);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.08);

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-w: 1100px;
  --pad-x: 40px;
  --section-y: 100px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: block;
}

.section-label--light {
  color: rgba(249, 247, 235, 0.45);
  border-bottom-color: rgba(249, 247, 235, 0.15);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 52px;
  line-height: 1.15;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(249, 247, 235, 0.45);
}
.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(249, 247, 235, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--cream);
}

.btn-green {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.btn-green:hover {
  background: #163826;
  border-color: #163826;
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.btn-link:hover { opacity: 0.7; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.is-scrolled {
  background: var(--green);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249, 247, 235, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

.nav-cta {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(249, 247, 235, 0.45);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: rgba(249, 247, 235, 0.12);
  border-color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--green);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}

/* subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(0,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

/* ── Availability badge ── */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249, 247, 235, 0.65);
  background: rgba(249, 247, 235, 0.08);
  border: 1px solid rgba(249, 247, 235, 0.2);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
}

.availability-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(74,222,128,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0.1); }
}

/* ── Photo ── */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 280px;
  height: 340px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(249, 247, 235, 0.10);
  border: 2px dashed rgba(249, 247, 235, 0.25);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(249, 247, 235, 0.35);
}

.photo-placeholder svg { opacity: 0.6; }

.photo-placeholder span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Content ── */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 500px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 247, 235, 0.55);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 17px;
  font-weight: 300;
  color: rgba(249, 247, 235, 0.72);
  line-height: 1.65;
  max-width: 420px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(249, 247, 235, 0.35);
}

.hero-scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(249,247,235,0.35), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-y) var(--pad-x);
}

.section-white { background: var(--white); }
.section-green { background: var(--green); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 72px;
  align-items: start;
}

.about-headline {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--green);
  line-height: 1.35;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-ctas {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
}

/* Stats sidebar */
.stats-block {
  background: var(--green);
  border-radius: 3px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249, 247, 235, 0.55);
  line-height: 1.4;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-study {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--white);
}

.case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 36px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.case-header-left { flex: 1; }

.case-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.case-header h3 {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  max-width: 580px;
}

.case-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.case-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.case-meta span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-col {
  padding: 32px 36px;
}

.case-col + .case-col {
  border-left: 1px solid var(--border);
}

.case-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 24px;
  margin-bottom: 10px;
}
.case-col h4:first-child { margin-top: 0; }

.case-col p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.outcomes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.outcomes li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.outcomes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  top: 2px;
}

.outcomes li strong {
  color: var(--text);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-cluster {
  background: var(--cream);
  padding: 32px 26px;
}

.skill-cluster h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}

.skill-cluster li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.skill-cluster li:last-child { border-bottom: none; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 20px 1fr;
  gap: 0 28px;
  margin-bottom: 44px;
  align-items: start;
}

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

.timeline-date {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
  flex-shrink: 0;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 2px;
  height: calc(100% + 34px);
  background: var(--border);
}

.timeline-item:last-child .timeline-dot::after { display: none; }

.timeline-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.timeline-content p:last-child {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 36px 40px;
}

.edu-badge {
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.edu-right h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-school {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

.edu-minor {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.edu-honors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-honors span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 0.6;
  color: rgba(249, 247, 235, 0.15);
  margin-bottom: 24px;
  display: block;
}

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: rgba(249, 247, 235, 0.88);
  line-height: 1.75;
  margin-bottom: 36px;
}

cite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-style: normal;
}

cite strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
}

cite span {
  font-size: 12px;
  color: rgba(249, 247, 235, 0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   PERSONAL
   ============================================================ */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.personal-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 28px;
}

.personal-icon {
  color: var(--green);
  margin-bottom: 16px;
  opacity: 0.7;
  display: block;
  width: 20px;
  height: 20px;
}

.personal-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.personal-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.personal-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
  text-align: center;
}

.contact-container .section-title {
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green);
  padding: 44px var(--pad-x);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  font-size: 13px;
  color: rgba(249, 247, 235, 0.55);
}

.footer-links a {
  color: rgba(249, 247, 235, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-size: 11px;
  color: rgba(249, 247, 235, 0.3);
  letter-spacing: 0.06em;
}

/* ── Section-level CTA row ── */
.section-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ============================================================
   FADE-IN ANIMATIONS (JS-driven)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Nav active state ── */
.nav-links a.is-active {
  color: var(--cream);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
    --section-y: 80px;
  }

  .hero-inner {
    grid-template-columns: 260px 1fr;
    gap: 56px;
  }

  .about-grid {
    grid-template-columns: 1fr 220px;
    gap: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .personal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --section-y: 64px;
  }

  /* Nav */
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 13px; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 110px 24px 72px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-photo-wrap { display: flex; justify-content: center; }
  .hero-photo { width: 220px; height: 270px; }
  .hero-content { align-items: center; }
  .hero-tagline { text-align: center; }
  .hero-ctas { justify-content: center; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-block {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 32px;
  }
  .stat { flex: 1 1 120px; }

  /* Case studies */
  .case-header {
    flex-direction: column;
    gap: 16px;
  }
  .case-meta { align-items: flex-start; }
  .case-body {
    grid-template-columns: 1fr;
  }
  .case-col + .case-col {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 24px;
    border-left: 2px solid var(--border);
    position: relative;
    gap: 6px;
    margin-bottom: 32px;
  }
  .timeline-date {
    text-align: left;
    font-size: 11px;
  }
  .timeline-dot {
    position: absolute;
    left: -6px;
    top: 4px;
  }
  .timeline-dot::after { display: none; }

  /* Personal */
  .personal-grid { grid-template-columns: 1fr; }

  /* Education */
  .edu-card { padding: 28px 24px; }
  .edu-honors { flex-direction: column; gap: 6px; }

  /* Contact */
  .contact-links { flex-direction: column; align-items: center; }
  .btn { text-align: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 38px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { text-align: center; }
}
