/* =========================================================
   NASH WERNER - FOUNDATION STYLES
   Reset + Variables + Typography + Layout + Buttons
   ========================================================= */

/* =========================
   1. CSS RESET (Modern)
   ========================= */

.debug-box {
  border: 2px solid #4F8CFF;
  padding: 12px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.experience-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-card:hover {
  box-shadow: var(--shadow-md);
}

.role-meta {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.role-summary {
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.experience-card ul {
  padding-left: 1.2rem;
}

.experience-card li {
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Remove list styles */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   2. DESIGN TOKENS (Variables)
   ========================= */

:root {
  /* Colors */
  --color-bg: #0b0f17;
  --color-surface: #111827;
  --color-surface-2: #1f2937;

  --color-text: #e5e7eb;
  --color-muted: #9ca3af;

  --color-primary: #4f8cff;
  --color-primary-hover: #3b73e6;

  --color-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1100px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* =========================
   3. BASE TYPOGRAPHY
   ========================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-4xl); font-weight: 700; color:#4F8CFF; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: 170ch;
}

small {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

strong {
  font-weight: 600;
}

/* =========================
   4. GLOBAL LAYOUT
   ========================= */

.container {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid helper */
.grid {
  display: grid;
  gap: var(--space-6);
}

.flex {
  display: flex;
  gap: var(--space-4);
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   5. LINKS
   ========================= */

a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

.link-muted {
  color: var(--color-muted);
}

.link-muted:hover {
  color: var(--color-text);
}

/* =========================
   6. BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);

  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);

  font-weight: 600;
  font-size: var(--text-sm);

  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
}

/* Primary button */
.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #CCC;
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--color-muted);
}

.btn-ghost:hover {
  color: var(--color-text);
}

/* =========================
   7. UTILITIES (LIGHT FOUNDATION)
   ========================= */

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* =========================================================
   8. HEADER + NAVIGATION (STICKY + RESPONSIVE)
   ========================================================= */

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);

  transition: all var(--transition-base);
}

/* Header inner layout */
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem var(--space-6);
}

/* =========================
   LOGO / BRAND
   ========================= */

.logo {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;

  color: var(--color-text);
  text-decoration: none;

  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo span {
  color: var(--color-primary);
}

/* Optional small tagline */
.logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-left: var(--space-2);
  display: none;
}

/* =========================
   DESKTOP NAVIGATION
   ========================= */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);

  position: relative;
  transition: color var(--transition-fast);
}

/* Hover state */
.nav-link:hover {
  color: var(--color-text);
}

/* Active underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0%;
  height: 2px;
  background: var(--color-primary);

  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* Active page state */
.nav-link.active {
  color: var(--color-text);
}

.nav-link.active::after {
  width: 100%;
}

/* =========================
   NAV CTA (optional button in nav)
   ========================= */

.nav-cta {
  margin-left: var(--space-4);
}

.nav-cta .btn {
  font-size: var(--text-xs);
  padding: 0.6rem 1rem;
}

/* =========================
   MOBILE NAVIGATION
   ========================= */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;

  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile menu container */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-4);

  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);

  padding: var(--space-6);
}

/* Mobile nav links */
.mobile-nav a {
  font-size: var(--text-base);
  color: var(--color-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:hover {
  color: var(--color-text);
}

/* =========================
   RESPONSIVE BEHAVIOR
   ========================= */

@media (max-width: 768px) {

 .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .mobile-toggle {
        display: block;
    }

  /* When active (JS toggles .open on header) */
  .header.open .mobile-nav {
    display: flex;
  }

  /* Animate hamburger into X */
  .header.open .mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
  }

  .header.open .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.open .mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
  }
}

/* =========================
   HEADER SCROLL EFFECT
   ========================= */

.header.scrolled {
  background: rgba(11, 15, 23, 0.95);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   9. HERO SECTION + HEADSHOT
   ========================================================= */

/* HERO WRAPPER */
.hero {
  position: relative;
  padding: var(--space-24) 0;

  display: flex;
  align-items: center;

  min-height: calc(100vh - 80px);
}

/* HERO GRID */
.hero-grid {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);

  align-items: center;
  padding: 0 var(--space-6);
}

/* =========================
   HERO TEXT CONTENT
   ========================= */

.hero-kicker {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;

  margin-bottom: var(--space-6);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.7;

  max-width: 55ch;
  margin-bottom: var(--space-8);
}

/* Authority line (SEO + credibility signal) */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);

  font-size: var(--text-sm);
  color: var(--color-muted);

  margin-bottom: var(--space-8);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* =========================
   CTA BUTTONS
   ========================= */

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 0.9rem 1.4rem;
  font-size: var(--text-sm);
}

/* Primary CTA emphasis */
.hero-cta .btn-primary {
  box-shadow: var(--shadow-md);
}

/* =========================
   HEADSHOT SECTION
   ========================= */

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Decorative glow behind image */
.hero-image::before {
  content: "";
  position: absolute;

  width: 320px;
  height: 320px;

  background: radial-gradient(
    circle,
    rgba(79, 140, 255, 0.25),
    transparent 70%
  );

  filter: blur(30px);
  z-index: 0;
}

/* Headshot image */
.hero-image img {
  width: 320px;
  height: 320px;

  object-fit: cover;
  border-radius: 24px;

  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);

  position: relative;
  z-index: 1;

  transform: translateY(0);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.about-headshot {
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Hover lift effect (subtle, premium feel) */
.hero-image img:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

/* =========================
   ANIMATIONS (SUBTLE)
   ========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.hero-title,
.hero-subtitle,
.hero-meta,
.hero-cta {
  animation: fadeUp 0.6s ease forwards;
}

.hero-title {
  animation-delay: 0.05s;
}

.hero-subtitle {
  animation-delay: 0.1s;
}

.hero-meta {
  animation-delay: 0.15s;
}

.hero-cta {
  animation-delay: 0.2s;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-image {
    margin-top: var(--space-12);
  }

  .hero-image img {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-16) 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
    border-radius: 18px;
  }
}

/* =====================================
   BLOG POST TOPICS / TAG METADATA
   ===================================== */

.blog-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
}

.blog-image img {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: transform .35s ease;
}

.blog-card:hover img {
    transform: scale(1.03);
}

.blog-content h2 {
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.post-meta {
    color: var(--color-muted);
    font-size: .875rem;
    margin-bottom: .75rem;
}

.blog-grid {
  display: grid;
  gap: 1rem;
}

.post-topics {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);

  font-size: 0.9rem;
  color: var(--color-muted);

  line-height: 1.6;
}

.post-topics a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;

  transition: color 0.2s ease;
}

.post-topics a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* =====================================
   BLOG ARTICLE CONTENT
   ===================================== */


.article-content {

  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
  line-height: 1.8;

}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #374151;
    max-width: 850px;
    margin: 0 auto 3rem auto;
    padding-left: 1.5rem;
    border-left: 4px solid #2563eb;
}

/* Paragraph spacing */

.article-content p {

  margin-bottom: 1.75rem;

}

/* Section headings */

.article-content h2 {

  margin-top: 4rem;
  margin-bottom: 1.5rem;

  font-size: 2rem;

  line-height: 1.3;

}

.article-content h3 {

  margin-top: 2.75rem;
  margin-bottom: 1rem;

  font-size: 1.35rem;

  line-height: 1.4;

}

/* Lists */

.article-content ul {
  margin-top: 1.5rem;
  list-style-type: disc;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

/* Strong emphasis */

.article-content strong {

  font-weight: 700;

}

.case-study-right {
    text-align: right;
}

.case-study-right p {
    text-align: right;
}


/* =====================================
   ARTICLE HEADER
   ===================================== */

.article-header {

  max-width: 900px;

  margin: 0 auto 4rem;

}


.article-header h1 {

  font-size: clamp(2.25rem, 5vw, 3.5rem);

  line-height: 1.15;

  margin-bottom: 1.5rem;

}


.article-header p {

  font-size: 1.05rem;

  line-height: 1.7;

}

/* =====================================
   ARTICLE PULL QUOTES
   ===================================== */

.article-content blockquote {

  margin: 3.5rem 0;

  padding: 2.5rem 3rem;

  border-left: 5px solid var(--color-primary);

  background: var(--color-surface);

  border-radius: var(--radius-lg);

  color: var(--color-text);

  font-size: 1.6rem;

  font-weight: 600;

  line-height: 1.45;

  letter-spacing: -0.02em;

  position: relative;

}


/* Large quotation mark */

.article-content blockquote::before {

  content: "“";

  position: absolute;

  top: -1.2rem;

  left: 1.5rem;

  font-size: 5rem;

  font-weight: 700;

  color: var(--color-primary);

  opacity: 0.35;

}


/* Optional attribution */

.article-content blockquote cite {

  display: block;

  margin-top: 1.25rem;

  font-size: 0.9rem;

  font-weight: 500;

  font-style: normal;

  color: var(--color-muted);

}


/* Mobile */

@media (max-width: 768px) {

  .article-content blockquote {

    padding: 2rem 1.5rem;

    font-size: 1.25rem;

  }

}

/* =====================================
   ARTICLE HERO IMAGE
   ===================================== */

.article-image {

  margin: 3rem auto 4rem;

  max-width: 1200px;

}


.article-image img {

  width: 100%;

  height: auto;

  display: block;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-lg);

}


.article-image figcaption {

  margin-top: 0.75rem;

  font-size: 0.85rem;

  color: var(--color-muted);

  text-align: center;

}


/* =====================================
   CONTACT FORM
   ===================================== */

.form-container {

max-width: 800px;

margin: 3rem auto;

background: white;

padding: 2rem;

border-radius: var(--radius-lg);

box-shadow: var(--shadow-lg);

}

.form-container iframe {

border-radius: 12px;

}

/* =========================
   404 PAGE
========================= */

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.button-secondary:hover {
    background: var(--primary);
    color: #fff;
}
