/*
Theme Name: PostSalesGrowth
Theme URI: https://postsalesgrowth.com
Author: James Levine
Author URI: https://linkedin.com/in/jamesmlevine
Description: PostSalesGrowth - The Post-Sales Operating System for SaaS by James Levine
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: postsalesgrowth
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,700&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --blue-50: #EEF2FF;
  --blue-100: #C7D2FE;
  --blue-200: #818CF8;
  --blue-400: #6366F1;
  --blue-600: #4338CA;
  --blue-800: #312E81;
  --blue-900: #1E1B4B;
  --amber-400: #EF9F27;
  --coral-400: #F0997B;
  --gray-50: #F8F7F4;
  --gray-100: #F1EFE8;
  --gray-200: #D3D1C7;
  --gray-400: #888780;
  --gray-600: #5F5E5A;
  --gray-900: #1A1A18;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 960px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--blue-400); }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-size: 13px; color: var(--gray-600);
  letter-spacing: 0.2px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gray-900); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding: 0.5rem 1.25rem;
  background: var(--blue-600); color: var(--blue-50);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-800); }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 0.75rem 1.75rem;
  background: var(--blue-600); color: var(--blue-50);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-800); }
.btn-secondary {
  display: inline-block;
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  padding: 0.75rem 1.75rem;
  background: transparent; color: var(--gray-900);
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gray-400); }
.btn-ghost {
  display: inline-block;
  font-family: var(--font-body); font-size: 13px;
  color: var(--blue-600); font-weight: 500;
  padding: 0; background: none; border: none; cursor: pointer;
}

/* LAYOUT */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* TYPOGRAPHY */
.eyebrow {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue-400); font-weight: 500; margin-bottom: 1rem;
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -1.5px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.8px;
}
.display-md {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.5px;
}
.lead {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: var(--gray-600); max-width: 580px;
}
.body-text { font-size: 15px; line-height: 1.8; color: var(--gray-600); font-weight: 300; }

em.accent { font-style: italic; color: var(--blue-400); }

/* MANTRA BAR */
.mantra-bar {
  background: var(--blue-800);
  color: var(--blue-100);
  padding: 1.25rem 2.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px; font-style: italic;
  letter-spacing: -0.2px;
}

/* CARDS */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.card-sm {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
.surface {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* FRAMEWORK CARDS */
.framework-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.framework-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
}
.framework-card.vital::before { background: var(--blue-400); }
.framework-card.grow::before { background: var(--blue-600); }

.fw-tag {
  display: inline-block; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 12px;
  border-radius: 20px; margin-bottom: 1.25rem; font-weight: 500;
}
.vital .fw-tag { background: var(--blue-50); color: var(--blue-600); }
.grow .fw-tag { background: var(--blue-800); color: var(--blue-100); }

.fw-name {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 700;
  letter-spacing: -2px; line-height: 1; margin-bottom: 0.75rem;
}
.vital .fw-name { color: var(--blue-400); }
.grow .fw-name { color: var(--blue-600); }

.fw-letters { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; }
.fw-letter { display: flex; gap: 12px; align-items: flex-start; }
.fw-letter-char {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; min-width: 18px; line-height: 1.5;
}
.vital .fw-letter-char { color: var(--blue-400); }
.grow .fw-letter-char { color: var(--blue-600); }
.fw-letter-text { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.fw-letter-text strong { color: var(--gray-900); font-weight: 500; }

/* STAGE CARDS */
.stage-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-bottom: 0.75rem;
}

/* DIVIDER */
hr.divider { border: none; border-top: 1px solid var(--gray-200); }

/* FOOTER */
.footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 3rem 2.5rem 2rem;
}
.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--blue-200); }
.footer-tagline { font-size: 13px; color: var(--blue-200); line-height: 1.6; font-weight: 300; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-200); margin-bottom: 1rem; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-2 { animation: fadeUp 0.6s ease 0.1s forwards; opacity: 0; }
.fade-up-3 { animation: fadeUp 0.6s ease 0.2s forwards; opacity: 0; }
.fade-up-4 { animation: fadeUp 0.6s ease 0.3s forwards; opacity: 0; }

/* GRID HELPERS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; }

/* FORMS */
.form-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.input-field {
  font-family: var(--font-body); font-size: 14px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: #fff; color: var(--gray-900); outline: none;
  transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--blue-400); }
.input-field::placeholder { color: var(--gray-400); }

/* BADGES */
.badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px;
}
.badge-blue { background: var(--blue-50); color: var(--blue-600); }
.badge-dark { background: var(--blue-800); color: var(--blue-100); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* HAMBURGER MENU */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.nav-drawer {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  flex-direction: column;
  gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  display: block;
  font-size: 15px; color: var(--gray-600);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--gray-900); }
.nav-drawer .nav-cta-drawer {
  display: block; margin-top: 1rem;
  text-align: center;
  font-size: 14px; font-weight: 500;
  padding: 0.75rem 1.25rem;
  background: var(--blue-600); color: var(--blue-50);
  border-radius: var(--radius-sm);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .display-xl { font-size: clamp(30px, 8vw, 40px); letter-spacing: -1px; }
  .display-lg { font-size: clamp(24px, 6vw, 32px); }
  .display-md { font-size: 22px; }
  .lead { font-size: 15px; }
  .fw-name { font-size: 40px; }

  .container { padding: 0 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }

  .card { padding: 1.5rem; }
  .framework-card { padding: 1.75rem; }

  /* Fix about page sidebar layout */
  .about-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .about-sidebar {
    position: static !important;
  }

  /* Hero CTA buttons stack nicely */
  [style*="display: flex"][style*="gap: 1rem"] {
    flex-direction: column;
  }

  /* Footer bottom row */
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .mantra-bar { font-size: 15px; padding: 1rem 1.25rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .display-xl { font-size: 28px; }
  .nav-logo { font-size: 16px; }
}
