/* ========================================
   JausHouse Consulting — Main Stylesheet
   Dark mode default, Inter + JetBrains Mono
   ======================================== */

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --border: #252525;
  --border-light: #333333;
  --text: #d4d4d4;
  --text-dim: #888888;
  --text-muted: #555555;
  --white: #f0f0f0;
  --accent: #3ddc84;
  --accent-hover: #5ee89a;
  --accent-dim: rgba(61, 220, 132, 0.12);
  --accent-glow: rgba(61, 220, 132, 0.06);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --container: 1200px;
  --container-narrow: 800px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}

.mono {
  font-family: var(--font-mono);
}

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

a:hover {
  color: var(--accent-hover);
}

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

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* ========================================
   Navigation
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}

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

.logo-prompt {
  color: var(--accent);
}

.logo-text {
  color: var(--white);
}

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

.nav-link {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--accent-glow);
}

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  font-weight: 600;
  padding: 8px 16px;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61, 220, 132, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Mini terminal in hero */
.hero-terminal {
  max-width: 520px;
  margin: 0 auto;
}

.mini-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.mini-terminal-header {
  background: var(--bg-surface);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mini-terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.prompt-symbol {
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========================================
   Problems Section
   ======================================== */

.problems {
  padding: 80px 0;
  background: var(--bg-surface);
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.problem-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.problem-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.problem-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.problem-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Services Overview
   ======================================== */

.services-overview {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Process Preview
   ======================================== */

.process-preview {
  padding: 80px 0;
  background: var(--bg-surface);
}

.process-steps {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-pipe {
  display: none;
}

.step h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.process-cta {
  text-align: center;
}

/* ========================================
   About Teaser
   ======================================== */

.about-teaser {
  padding: 80px 0;
}

.about-teaser-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-teaser h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 20px;
}

.about-teaser p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-teaser .btn {
  margin-top: 16px;
}

/* ========================================
   CTA Banner
   ======================================== */

.cta-banner {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ========================================
   Page Layouts (Services, About, etc.)
   ======================================== */

.page {
  padding: 80px 0;
}

.page-header {
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Page content — rich text styling */
.page-content h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 48px 0 16px;
  padding-top: 16px;
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin: 32px 0 12px;
}

.page-content p {
  margin: 16px 0;
  color: var(--text);
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.page-content li {
  margin: 8px 0;
  color: var(--text);
  line-height: 1.7;
}

.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
}

.page-content code {
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.page-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.page-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--accent-hover);
}

.page-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ========================================
   Services Page Specific
   ======================================== */

.service-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-section h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.service-section .service-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.service-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.service-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.service-example h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.service-example p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   How It Works Page
   ======================================== */

.stepper {
  position: relative;
  padding-left: 48px;
}

.stepper::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}

.stepper-step {
  position: relative;
  padding: 24px 0;
}

.stepper-number {
  position: absolute;
  left: -48px;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  z-index: 1;
}

.stepper-step h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.stepper-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.stepper-step p {
  color: var(--text-dim);
  line-height: 1.7;
}

/* ========================================
   Contact Page
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.contact-form label {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.contact-info-card p {
  color: var(--text-dim);
  line-height: 1.7;
}

/* Calendly embed container */
.calendly-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendly-placeholder {
  text-align: center;
  color: var(--text-dim);
}

.calendly-placeholder p {
  margin: 8px 0;
}

/* ========================================
   Blog Specific
   ======================================== */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-entry a {
  display: block;
  text-decoration: none;
  padding: 20px 24px;
  margin: 0 -24px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.post-entry a:hover {
  background: var(--accent-glow);
}

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

.post-title {
  color: var(--white);
  font-weight: 600;
  margin: 4px 0;
}

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

.post-excerpt {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 4px;
}

.post-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
}

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

.post-reading-time {
  color: var(--text-muted);
  font-size: 13px;
}

.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-nav {
  display: flex;
  justify-content: space-between;
}

.post-nav-link {
  color: var(--accent);
  font-size: 14px;
}

/* Blog content specific overrides */
.blog-content h2 {
  margin-top: 40px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  margin-bottom: 40px;
}

.footer-brand .logo-prompt,
.footer-brand .logo-text {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.footer-brand .logo-prompt {
  color: var(--accent);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-tagline {
  color: var(--text-dim);
  margin-top: 8px;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.15s;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
  }

  .problem-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  list-style: none;
}

.page-item a,
.page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.page-item a:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.page-item.active span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
