/* =====================================================
   JesseNavarro.com — Shared Stylesheet
   Design tokens: warm off-white bg, charcoal text,
   terracotta accent, sage secondary
   ===================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg:          #FAF8F5;
  --bg-texture:  #F5F2EC;
  --white:       #FFFFFF;
  --text:        #2D2D2D;
  --text-muted:  #6B6560;
  --accent:      #C4653A;
  --accent-hover:#A8542E;
  --sage:        #7A8B6F;
  --sage-light:  #EBF0E8;
  --border:      rgba(45,45,45,0.08);
  --shadow-sm:   0 2px 12px rgba(180,120,80,0.07);
  --shadow-md:   0 6px 28px rgba(180,120,80,0.12);
  --shadow-hover:0 12px 40px rgba(180,120,80,0.18);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --max-width:   1120px;
  --section-gap: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-gap) 0; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 80px 0 90px;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtext {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196,101,58,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero image / headshot */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image-inner {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Placeholder when no headshot yet */
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #E8E0D8 0%, #D4C8BC 50%, #C4B8AC 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.hero-photo-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.35;
}

.hero-photo-placeholder span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* Decorative badge on hero image */
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge-icon svg { width: 20px; height: 20px; color: var(--sage); }

.hero-badge-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.hero-badge-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* =====================================================
   WHAT I'M BUILDING
   ===================================================== */
.building {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.7;
}

.building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.company-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.company-card:hover::before { opacity: 1; }

.company-logo {
  height: 52px;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
}

.company-tagline {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.company-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.company-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s ease;
}
.company-link:hover { gap: 10px; color: var(--accent-hover); }
.company-link svg { width: 16px; height: 16px; }

/* =====================================================
   LATEST CONTENT
   ===================================================== */
.content-feed { background: var(--bg); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 20px;
}

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

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.2s ease;
  flex-shrink: 0;
}
.view-all:hover { gap: 10px; color: var(--accent-hover); }
.view-all svg { width: 16px; height: 16px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E8E2DA 0%, #D0C8BC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumb-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

/* Different thumb tints per card */
.post-card:nth-child(1) .post-card-thumb { background: linear-gradient(135deg, #DDE5D8 0%, #C4D0BC 100%); }
.post-card:nth-child(2) .post-card-thumb { background: linear-gradient(135deg, #E8DDD5 0%, #D4C4B8 100%); }
.post-card:nth-child(3) .post-card-thumb { background: linear-gradient(135deg, #D8DDE8 0%, #BCC4D4 100%); }

.content-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(250,248,245,0.92);
  color: var(--text);
}

.post-card-body { padding: 24px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.post-read-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-read-time::before { content: '·'; }

.post-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title { color: var(--accent); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   MINI BIO
   ===================================================== */
.mini-bio {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bio-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.bio-content {}

.bio-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.25;
  margin-bottom: 28px;
  color: var(--text);
}

.bio-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.bio-content p:last-of-type { margin-bottom: 32px; }

.bio-sidebar {}

.bio-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.bio-sidebar-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text);
}

.sidebar-company {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-company:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.sidebar-company img {
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.sidebar-company p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0;
}

.sidebar-company a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* =====================================================
   CLIENT MENTIONS STRIP
   ===================================================== */
.credibility-strip {
  padding: 32px 0;
  background: var(--bg-texture);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.credibility-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.credibility-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.credibility-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.credibility-names {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.credibility-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  white-space: nowrap;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 52px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  /* Invert to show white logo on dark bg */
  filter: invert(1) brightness(2);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196,101,58,0.1);
}

.footer-social svg { width: 16px; height: 16px; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-accent { color: var(--accent); }
.text-sage   { color: var(--sage); }
.text-muted  { color: var(--text-muted); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  :root { --section-gap: 72px; }

  .hero-inner {
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }

  .hero-image-inner {
    width: 340px;
    height: 410px;
  }

  .bio-inner {
    grid-template-columns: 1fr 300px;
    gap: 52px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --section-gap: 56px; }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }

  /* Hero */
  .hero { padding: 56px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-image-wrap { order: -1; }
  .hero-image-inner {
    width: 100%;
    height: 320px;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-badge { bottom: -14px; left: 14px; }

  /* Building cards */
  .building-grid { grid-template-columns: 1fr; }

  /* Posts grid */
  .posts-grid { grid-template-columns: 1fr; }

  /* Bio */
  .bio-inner { grid-template-columns: 1fr; gap: 40px; }
  .bio-sidebar-card { position: static; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
  .hero-cta-group { flex-direction: column; }
  .btn { justify-content: center; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .credibility-inner { gap: 20px; }
}
