/*
Theme Name: Cogitos Beta 3
Theme URI: https://cogitoslabs.com
Author: Cogitos Labs
Description: A lightweight, custom theme for Cogitos Labs. Intent Aligned Autonomy.
Version: 1.1
License: Proprietary
*/

/* ============================================
   CSS Variables & Theme Configuration
   ============================================ */
   :root {
    --primary-text: #0a0a0a;
    --secondary-text: #4a4a4a;
    --muted-text: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #f7f9fc;
    --border-color: #e5e5e5;
    --accent: #0056b3;
    --accent-hover: #004488;
    --prose-width: 780px;
  }
  
  /* ============================================
     Base Styles
     ============================================ */
  * {
    scroll-behavior: smooth;
    box-sizing: border-box;
  }
  
  body {
    background: var(--bg-white);
    color: var(--primary-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* ============================================
     Typography
     ============================================ */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
  }
  
  h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  
  h3 {
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
  }
  
  .lead {
    font-size: 1.125rem;
    color: var(--secondary-text);
    font-weight: 400;
    line-height: 1.75;
    text-wrap: pretty;
    overflow-wrap: break-word;
  }
  
  /* ============================================
     Header & Navigation
     ============================================ */
  header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-text);
  }
  
  .logo-section:hover {
    text-decoration: none;
    color: var(--primary-text);
  }
  
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-hover), #06b6d4); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
  }
  
  .brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .nav-links a:hover {
    color: var(--accent);
  }
  
  .nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.6rem 1.35rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
  }
  
  .nav-cta:hover {
    background: var(--accent-hover);
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
  }
  
  /* ============================================
     Hero Section
     ============================================ */
  .hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
  }
  
  .hero-tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .hero h1 {
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.1;
    text-align: center;
  }
  
  .hero .lead {
    max-width: var(--prose-width);
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    line-height: 1.75;
    text-wrap: pretty;
    overflow-wrap: break-word;
    text-align: left;
  }
  
  
  /* ============================================
     Content Sections
     ============================================ */
  .section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
  }

  /* Add a subtle top border to white sections that follow another white section */
  #applications,
  #approach,
  #contact {
    border-top: 1px solid var(--border-color);
  }
  
  .section-light {
    background: var(--bg-light);
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
  
  .section-header h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .section-header p {
    font-size: 1.125rem;
    color: var(--secondary-text);
    max-width: var(--prose-width);
    margin: 0 auto;
    line-height: 1.75;
    text-wrap: pretty;
    overflow-wrap: break-word;
    text-align: left;
  }
  
  /* ============================================
     Cards & Grid
     ============================================ */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  
  .card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.08);
  }
  
  .card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
  }
  
  .card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }
  
  
  .btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
    cursor: pointer;
  }
  
  .btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
  }
  
  
  
  /* ============================================
     Footer & Three Column Layout
     ============================================ */
  .three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .three-col-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
  }
  
  .three-col-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 600;
  }
  
  .three-col-item p {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin: 0;
  }
  
  footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    padding: 3rem 2rem;
    margin-top: 5rem;
  }
  
  .footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  
  .footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }
  
  .footer-links a:hover {
    color: var(--accent);
  }
  
  .footer-copyright {
    color: var(--muted-text);
    font-size: 0.9rem;
  }
  
  /* ============================================
     Responsive Design
     ============================================ */
  @media (max-width: 1024px) {
    .hero h1 {
      font-size: 3rem;
    }
  }
  
  @media (max-width: 768px) {
    .navbar {
      padding: 0 1rem;
    }
  
    .nav-links {
      display: none;
    }
  
    .hero {
      padding: 4rem 1rem 3rem;
    }
  
    .hero h1 {
      font-size: 2.5rem;
    }
  
    .hero .lead {
      font-size: 1.25rem;
    }
  
    .section {
      padding: 3rem 1rem;
    }
  
    .card-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .three-col {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    h1 {
      font-size: 2.5rem;
    }
  
    h2 {
      font-size: 2rem;
    }
  
    .footer-content {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .footer-links {
      flex-direction: column;
      gap: 0.75rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero h1 {
      font-size: 2rem;
    }
  
    .btn-primary.full-width {
      width: 100%;
    }
  }
  
/* ============================================
   Force Fonts on Contact Forms
   ============================================ */
input, select, textarea, button, .btn-primary {
  font-family: inherit !important; /* Forces it to use the Body font */
  font-size: 1rem; /* Ensures text isn't tiny */
}

/* Specific fix for Contact Form 7 placeholders */
::placeholder {
  font-family: inherit;
  opacity: 0.8;
}
/* ===============================
   NAVBAR + MOBILE BURGER
   =============================== */

/* Burger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile */
@media (max-width: 992px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    display: flex;
    max-height: 400px;
    padding: 1rem 1.25rem;
  }
}

/* ============================================
   Additions for R&D Plan Alignment — v1.1
   ============================================ */

/* Secondary CTA button (hero) */
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  background: #e8f0fb;
  color: var(--accent-hover);
  text-decoration: none;
}

/* Team cards */
.team-role-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: -0.25rem;
}

.team-bio {
  font-size: 0.85rem !important;
  color: var(--muted-text) !important;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1.6 !important;
}

/* Three-col: 6-item grid for Principles */
.three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .three-col {
    grid-template-columns: 1fr;
  }
  .btn-secondary {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* ============================================
   Blog Styles — append to style.css
   ============================================ */

/* ── Post Header (single.php) ── */
.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.post-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

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

.post-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-text);
  flex-wrap: wrap;
}

.post-sep {
  color: var(--border-color);
}

.post-category {
  background: var(--bg-light);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.8rem;
}

/* ── Post Body (single.php) ── */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
  border-top: 1px solid var(--border-color);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--secondary-text);
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.post-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 86, 179, 0.3);
}

.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--bg-light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--secondary-text);
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-content li {
  margin-bottom: 0.4rem;
  color: var(--secondary-text);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content code {
  background: var(--bg-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-text);
}

.post-content pre {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

/* ── Post Footer (single.php) ── */
.post-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  border-top: 1px solid var(--border-color);
}

/* ── Blog Listing (archive.php) ── */
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Blog index page — first section sits right below the nav,
   so use less top padding than interior homepage sections */
.blog-index-section {
  padding-top: 2.5rem;
}

.blog-card h3 {
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-read-more:hover {
  color: var(--accent-hover);
}

/* ── Pagination ── */
.blog-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .post-header,
  .post-body,
  .post-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .post-title {
    font-size: 2rem;
  }
}

