/* Westwood Consulting — Stylesheet
   Palette: Charcoal #2D2D2D, Sage #8FA68E, Off-white #F5F5F2 */

:root {
  --charcoal: #2D2D2D;
  --sage: #8FA68E;
  --sage-dark: #7A917A;
  --offwhite: #F5F5F2;
  --white: #FFFFFF;
  --slate: #6B7A6E;
  --border: #E5E5E2;
  --danger: #A33A2A;
  --max-width: 1100px;
  --content-width: 65ch;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { font-weight: 600; color: var(--charcoal); letter-spacing: -0.01em; }
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: var(--content-width); }
p.lead { font-size: 1.2rem; color: var(--slate); margin-bottom: 1.5rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.75rem; display: block; }
a { color: var(--sage-dark); text-decoration: underline; }
a:hover { color: var(--charcoal); }
strong { font-weight: 600; }
ul, ol { margin: 0 0 1rem 1.25rem; max-width: var(--content-width); }
li { margin-bottom: 0.5rem; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.tight { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Header / Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max-width); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); }
.logo:hover { color: var(--charcoal); }
.logo-mark { width: 44px; height: 32px; color: var(--charcoal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-mark-light { color: var(--white); }
.logo-text { line-height: 1.1; }
.logo-name { font-size: 16px; font-weight: 500; color: var(--charcoal); }
.logo-tag { font-size: 10px; letter-spacing: 0.2em; color: var(--slate); }
.nav-links { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; }
.nav-links a { font-size: 14px; color: var(--charcoal); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-links a i { display: none; }
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a.active { color: var(--sage-dark); }
.nav-cta { background: var(--sage); color: var(--white) !important; padding: 8px 16px; border-radius: 6px; }
.nav-cta:hover { background: var(--sage-dark); color: var(--white) !important; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 500; font-size: 1rem; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; font-family: inherit; }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); padding: 11px 23px; }
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 100px 0 80px; background: var(--offwhite); }
.hero h1 { font-size: 3rem; max-width: 18ch; }
.hero p.lead { max-width: 50ch; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--slate); margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s; }
.card-link:hover { border-color: var(--sage); color: inherit; }

/* Sections with white surface */
.surface-white { background: var(--white); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--offwhite); padding: 56px 0 32px; margin-top: 80px; }
.site-footer .container { max-width: var(--max-width); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-size: 14px; color: var(--white); font-weight: 600; margin-bottom: 12px; }
.site-footer a { color: var(--offwhite); text-decoration: none; font-size: 14px; opacity: 0.85; }
.site-footer a:hover { color: var(--sage); opacity: 1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; opacity: 0.7; }
.tip-jar { background: var(--sage); color: var(--white); padding: 8px 16px; border-radius: 6px; text-decoration: none; display: inline-block; font-size: 14px; font-weight: 500; }
.tip-jar:hover { background: var(--sage-dark); color: var(--white); }

/* About / portrait */
.portrait { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; }
.portrait-small { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.portrait-placeholder { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; background: var(--charcoal); color: var(--sage); display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 8px; }

/* About hero — full-bleed photo + text overlay */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: var(--charcoal);
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
}
.about-hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}
/* Soft fade on the left edge of the photo so text reads cleanly */
.about-hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(to right, var(--charcoal) 0%, rgba(45,45,45,0.6) 50%, rgba(45,45,45,0) 100%);
}
.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: max(24px, calc((100% - 1100px) / 2));
  padding: 80px 24px;
}
.about-hero-content h1 { margin-bottom: 16px; }
.about-hero-content .lead { max-width: 38ch; }

@media (max-width: 900px) {
  .about-hero { min-height: 0; flex-direction: column; }
  .about-hero-image {
    position: relative;
    width: 100%;
    height: 320px;
    background-position: center 20%;
  }
  .about-hero-image::before { display: none; }
  .about-hero-content {
    margin-left: 0;
    padding: 32px 24px 48px;
    max-width: 100%;
  }
}

/* Q&A collapsibles */
.qa-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.qa-question { padding: 20px 24px; cursor: pointer; font-weight: 500; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; background: var(--white); }
.qa-question:hover { background: #FAFAF7; }
.qa-question::after { content: "+"; font-size: 1.5rem; color: var(--slate); font-weight: 400; }
.qa-item.open .qa-question::after { content: "−"; }
.qa-answer { display: none; padding: 0 24px 24px; border-top: 1px solid var(--border); }
.qa-item.open .qa-answer { display: block; }
.qa-answer h4 { font-size: 13px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; margin: 16px 0 6px; }
.qa-answer h4:first-child { margin-top: 16px; }
.qa-answer p { color: var(--charcoal); }
.qa-category { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin: 32px 0 12px; }
.qa-category:first-of-type { margin-top: 0; }

/* Highlight callout */
.callout { background: var(--white); border-left: 3px solid var(--sage); padding: 20px 24px; margin: 24px 0; border-radius: 0 6px 6px 0; }
.callout p { margin-bottom: 0; }
.callout-title { font-weight: 600; margin-bottom: 8px; display: block; }

/* Pricing card */
.pricing-card { background: var(--white); border: 2px solid var(--sage); border-radius: 12px; padding: 40px; text-align: center; max-width: 480px; margin: 0 auto; }
.pricing-card .price { font-size: 3rem; font-weight: 600; color: var(--charcoal); }
.pricing-card .price-unit { font-size: 1rem; color: var(--slate); }
.pricing-card ul { text-align: left; max-width: 100%; margin: 24px 0; list-style: none; padding: 0; }
.pricing-card li { padding-left: 24px; position: relative; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 600; }

/* Engagement modal — appears after time/scroll engagement */
.engagement-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(45, 45, 45, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.engagement-modal-backdrop.open { display: flex; opacity: 1; }
.engagement-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.engagement-modal-backdrop.open .engagement-modal { transform: translateY(0); }
.engagement-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--slate);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}
.engagement-modal-close:hover { background: var(--offwhite); color: var(--charcoal); }
.engagement-modal h3 { margin-bottom: 8px; font-size: 1.35rem; }
.engagement-modal-subtitle {
  color: var(--slate);
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.engagement-modal-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.engagement-modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--charcoal);
  transition: border-color 0.15s, background 0.15s;
}
.engagement-modal-option:hover {
  border-color: var(--sage);
  background: var(--offwhite);
  color: var(--charcoal);
}
.engagement-modal-option-title { font-weight: 500; font-size: 14px; }
.engagement-modal-option-desc { color: var(--slate); font-size: 12px; margin-top: 2px; }
.engagement-modal-option-arrow { color: var(--slate); font-size: 18px; }
.engagement-modal-divider {
  text-align: center;
  color: var(--slate);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 4px 0 12px;
}
.engagement-modal .btn-primary { width: 100%; text-align: center; }

/* Article / blog post styling */
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--slate); font-size: 14px; margin-bottom: 16px; }
.article-meta .dot { color: var(--border); }
.article-back { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.article-back:hover { color: var(--sage-dark); }
.article-body { max-width: 65ch; }
.article-body h2 { margin-top: 40px; }
.article-body h3 { margin-top: 28px; font-size: 1.1rem; }
.article-body blockquote { border-left: 3px solid var(--sage); padding: 6px 0 6px 20px; margin: 24px 0; max-width: 65ch; }
.article-body blockquote p { color: var(--charcoal); margin-bottom: 8px; font-style: italic; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; }
.testimonial-quote { flex: 1; color: var(--charcoal); font-size: 15px; line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testimonial-quote::before { content: "\201C"; font-size: 36px; line-height: 0; vertical-align: -12px; color: var(--sage); margin-right: 4px; font-style: normal; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial-avatar { width: 44px; height: 44px; background: var(--charcoal); color: var(--sage); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.testimonial-avatar i { font-size: 22px; line-height: 1; }
.testimonial-author-info { font-size: 13px; line-height: 1.4; }
.testimonial-author-name { font-weight: 600; color: var(--charcoal); font-size: 14px; }
.testimonial-author-title { color: var(--slate); font-size: 12px; }
.testimonial-relationship { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 12px; }
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Two-up compare layout (Resume vs Cover Letter) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.compare-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.compare-card .eyebrow { color: var(--sage-dark); }
.compare-card h3 { margin-bottom: 12px; }

/* Sticky mobile CTA — only shows on small screens */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: var(--sage);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.15s;
}
.mobile-cta:hover, .mobile-cta:active { background: var(--sage-dark); color: var(--white); }
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 80px; }
}

/* Anchor TOC for long pages (Interview Skills) */
.qa-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0 32px;
  font-size: 14px;
}
.qa-toc-label { font-weight: 600; margin-right: 8px; color: var(--charcoal); }
.qa-toc a {
  text-decoration: none;
  padding: 6px 12px;
  background: var(--offwhite);
  color: var(--charcoal);
  border-radius: 4px;
  font-size: 13px;
}
.qa-toc a:hover { background: var(--sage); color: var(--white); }

/* Print styles */
@media print {
  .site-header, .site-footer, .mobile-cta, .nav-mobile-toggle, .qa-toc, .btn, .btn-group, .nav-cta { display: none !important; }
  body { background: white !important; color: black !important; font-size: 11pt; padding: 0 !important; }
  .container { max-width: 100%; padding: 0; }
  section { padding: 16pt 0 !important; }
  h1, h2, h3 { color: black !important; page-break-after: avoid; }
  a { color: black !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  .qa-item { break-inside: avoid; border: 1px solid #ccc !important; background: white !important; }
  .qa-answer { display: block !important; padding: 0 24px 16px; }
  .qa-question::after { content: "" !important; }
  .qa-question { background: white !important; }
  .testimonial-card { break-inside: avoid; }
  .about-hero, .hero, .surface-white { background: white !important; }
  .about-hero-image { display: none !important; }
  .about-hero-content { padding: 0 !important; }
  .about-hero-content h1, .about-hero-content .lead { color: black !important; }
}

/* Mobile + narrow tablet — collapse nav to hamburger before items get cramped */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .grid-2, .grid-3, .compare, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-mobile-toggle { display: block; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 340px;
    background: var(--white);
    padding: 24px;
    margin: 0;
    list-style: none;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 200;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  }
  .nav-mobile-open .nav-links { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links li:first-child { display: flex; justify-content: flex-end; margin-bottom: 8px; }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }
  .nav-links a:hover { color: var(--sage-dark); }
  .nav-links a.active { color: var(--sage-dark); }
  .nav-links a i { font-size: 20px; color: var(--slate); flex-shrink: 0; }
  .nav-links a.active i { color: var(--sage-dark); }
  .nav-links a.nav-cta {
    margin-top: 24px;
    padding: 14px 20px !important;
    border-bottom: none;
    border-radius: 6px;
    background: var(--sage);
    color: var(--white) !important;
    justify-content: center;
  }
  .nav-links a.nav-cta i { color: var(--white) !important; }
  .nav-links a.nav-cta:hover { background: var(--sage-dark); color: var(--white) !important; }
}

/* Mobile nav toggle (shown on small screens) */
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--charcoal); cursor: pointer; padding: 4px 8px; line-height: 1; }

/* Mobile side drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45,45,45,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-backdrop.active { opacity: 1; pointer-events: auto; }
.nav-drawer-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--charcoal);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  display: none;
}
.nav-drawer-close:hover { background: var(--offwhite); }
@media (max-width: 1024px) {
  .nav-drawer-close { display: flex; }
}

/* Home link in drawer — mobile only */
.nav-home-mobile { display: none; }
@media (max-width: 1024px) { .nav-home-mobile { display: list-item; } }
