/* Sales Enablement Guy - Main Stylesheet */
/* Custom CSS to complement Tailwind */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-accent: #dc2626;
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-bg-light: #f9fafb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* Mobile Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary);
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    width: 100%;
  }

  .mobile-menu-button {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.375rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background: #b91c1c;
  color: white;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Tool Card */
.tool-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
  height: 100%;
}

.tool-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.tool-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.tool-description {
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin: 0;
}

.tool-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-light);
  color: var(--color-text-secondary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.price-indicator {
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* Tool Detail Card */
.tool-detail {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.tool-detail h2 {
  margin-bottom: 1rem;
}

.tool-section {
  margin-bottom: 1.5rem;
}

.tool-section h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.tool-section ul {
  list-style: none;
  padding: 0;
}

.tool-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.tool-section li:before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.tool-section.not-good li:before {
  content: "×";
  color: var(--color-accent);
}

.bottom-line {
  background: var(--color-bg-light);
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 4px solid var(--color-primary);
  font-weight: 500;
  font-style: italic;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(to bottom, white, var(--color-bg-light));
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

/* Value Props */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.value-prop {
  text-align: center;
}

.value-prop h3 {
  margin-bottom: 0.5rem;
}

.value-prop p {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .value-props {
    grid-template-columns: 1fr;
  }
}

/* Newsletter Form */
.newsletter-form {
  background: var(--color-bg-light);
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form h3 {
  margin-bottom: 0.5rem;
}

.newsletter-form p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.newsletter-form form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
  .newsletter-form form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.comparison-table th {
  background: var(--color-bg-light);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background: var(--color-bg-light);
}

/* Template Card */
.template-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.template-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.template-preview {
  background: var(--color-bg-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-primary);
}

.template-content {
  padding: 1.5rem;
}

.template-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.template-includes {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.template-includes li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-secondary);
}

.template-includes li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.template-format {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.template-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Blog Post */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-meta {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-post h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.875rem;
  line-height: 1.3;
}

.blog-post h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

.blog-post p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.blog-post ul, .blog-post ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.7;
}

.blog-post li {
  margin-bottom: 0.5rem;
}

.blog-post strong {
  font-weight: 600;
  color: var(--color-text);
}

.blog-post code {
  background: var(--color-bg-light);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

/* Related Resources */
.related-resources {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 3rem 0;
}

.related-resources h3 {
  margin-bottom: 1rem;
}

.related-resources ul {
  list-style: none;
  padding: 0;
}

.related-resources li {
  margin-bottom: 0.5rem;
}

.related-resources a {
  color: var(--color-primary);
  font-weight: 500;
}

.related-resources a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--color-text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.bg-light {
  background-color: var(--color-bg-light);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}
