/* nervous - Clean Rebuild */

/* Custom Fonts */
@font-face {
  font-family: 'TT Travels';
  src: url('../fonts/TT_Travels_ExtraBold.woff2') format('woff2'),
       url('../fonts/TT_Travels_ExtraBold.woff') format('woff'),
       url('../fonts/TT Travels ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #196fd2;
  --blue-dark: #104685;
  --yellow: #ffd110;
  --cyan: #58c5e4;
  --text: #333;
  --bg: #eee;
  --bg-alt: #e6e6e6;
  --white: #fff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'TT Travels', sans-serif;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

p:last-child {
  margin-bottom: 0;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar .logo img {
  height: 60px;
  width: auto;
}

.navbar .logo-wordmark {
  display: none;
}

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

.nav-menu a:not(.btn) {
  font-family: 'Source Code Pro', monospace;
  font-weight: 400;
  color: var(--text);
  padding: 8px 0;
}

.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn).active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  border: 2px solid var(--blue);
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 111, 210, 0.3);
}

.btn:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  margin-left: 10px;
}

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

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 111, 210, 0.3);
}

.btn-secondary:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(0);
}

/* Section Dividers */
.section-divider {
  width: 100%;
  height: 30px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  position: relative;
  margin-top: -30px;
  z-index: 10;
}

.section-divider.white-to-gray {
  background-color: var(--bg);
  background-image: url('../images/Frame.png');
}

.section-divider.gray-to-white {
  background-color: var(--bg);
  background-image: url('../images/Frame-flipped.png');
}

.section-divider.gray-to-yellow {
  background-color: var(--yellow);
  background-image: url('../images/Frame-flipped.png');
}

.section-divider.white-to-yellow {
  background-color: var(--bg);
  background-image: url('../images/divider-yellow.png');
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header p {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero-image {
  max-width: 600px;
  width: 100%;
  margin: 30px auto;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Content Blocks */
.content-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block-text {
  flex: 1;
}

.content-block-image {
  flex: 0 0 250px;
}

.content-block-image img {
  max-width: 100%;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 15px;
}

.step-image {
  flex: 0 0 200px;
}

/* Cards Grid */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 0 1 200px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card img {
  max-height: 120px;
  margin: 0 auto 15px;
  display: block;
}

.card h3 {
  font-size: 1rem;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.team-member h3 {
  margin-bottom: 10px;
}

/* Case Studies */
.case-study {
  background: transparent;
  padding: 0;
  margin-bottom: 40px;
}

.case-study h3 {
  margin-bottom: 15px;
}

.case-study-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Bot Listings */
.bots-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.bots-hero-icon {
  height: 120px;
  width: auto;
}

.bot-listing {
  margin-bottom: 40px;
}

.bot-price {
  font-size: 1.2rem;
  color: var(--blue);
  margin-top: 15px;
}

.bot-listing h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0 8px 25px;
  position: relative;
}

.feature-list li::before {
  content: "•";
  color: var(--blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FAQ Page */
.faq-section {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faq-header:hover {
  background: var(--bg);
}

.faq-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.faq-header .faq-icon {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: bold;
  transition: transform 0.3s;
}

.faq-header[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 25px 20px;
}

.faq-content.open {
  display: block;
}

.faq-item {
  border-top: 1px solid var(--bg);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 15px;
  transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 15px;
}

.faq-answer.open {
  display: block;
}

.faq-answer p {
  color: #666;
}

.faq-answer code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
}

/* Bot Detail Pages */
.bot-tagline {
  font-size: 1.4rem;
  color: var(--blue);
  font-style: italic;
  margin-bottom: 10px;
}

/* Inline code styling */
code {
  display: inline-block;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  color: var(--text);
}

/* Command blocks */
.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.command {
  display: inline-block;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  color: var(--text);
}

/* Documentation Pages */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--bg);
}

.docs-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

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

.docs-table code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.85rem;
}

pre {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 15px 0;
}

pre code {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  color: var(--text);
}

/* Project Tabs (Our Work page) */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.project-tab {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--blue);
  border-radius: 30px;
  font-family: 'TT Travels', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.project-tab:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.project-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 111, 210, 0.3);
}

.project-tab:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(0);
}

.project-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.project-tab.active:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.project-panels {
  position: relative;
}

.project-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-panel.active {
  display: block;
  opacity: 1;
}

.project-panel .case-study {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 40px;
}

/* Blog */
.blog-posts {
  display: grid;
  gap: 30px;
}

.blog-post {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
}

.blog-post h3 {
  margin-bottom: 10px;
}

.blog-post p {
  color: #666;
}

/* Podcast */
.podcast-info {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.podcast-cover {
  flex: 0 0 200px;
}

.podcast-cover img {
  border-radius: 10px;
}

.podcast-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.podcast-links a img {
  height: 40px;
}

/* Footer */
.footer {
  background: var(--yellow);
  padding: 30px 0;
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.footer .logo img:not(.logo-wordmark) {
  height: 50px;
}

.footer .logo-wordmark {
  display: none;
  height: 40px;
}

.footer-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: 'Source Code Pro', monospace;
  font-weight: 400;
  color: var(--text);
}

.footer-nav a:hover {
  color: var(--blue);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .content-block {
    gap: 30px;
  }

  .content-block-image {
    flex: 0 0 200px;
  }

  /* Bot listing - tablet */
  .bot-listing .content-block-image {
    flex: 0 0 180px;
  }

  /* Project tabs - tablet */
  .project-tab {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* Docs tables - tablet */
  .docs-table th,
  .docs-table td {
    padding: 12px 15px;
  }

  /* Footer - tablet */
  .footer .container {
    gap: 40px;
  }

  .footer-nav {
    gap: 25px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.2rem; }

  .section { padding: 50px 0; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

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

  .nav-toggle {
    display: block;
  }

  .content-block,
  .content-block.reverse,
  .step,
  .step:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }

  .content-block-image,
  .step-image {
    flex: none;
    max-width: 200px;
  }

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

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

  .podcast-info {
    flex-direction: column;
    text-align: center;
  }

  /* Bot listing - mobile */
  .bot-listing {
    margin-bottom: 30px;
  }

  .bot-listing .content-block-image {
    max-width: 150px;
    margin: 0 auto;
  }

  .bot-listing h3 {
    margin-top: 20px;
  }

  .bot-price {
    font-size: 1.1rem;
  }

  .feature-list li {
    padding: 6px 0 6px 20px;
    font-size: 0.95rem;
  }

  /* Bot detail pages - mobile */
  .bot-detail-header {
    text-align: center;
  }

  .bot-detail-header .content-block-image {
    max-width: 180px;
    margin: 0 auto 20px;
  }

  .bot-detail-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .bot-detail-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .bot-detail-buttons .btn-secondary {
    margin-left: 0;
  }

  /* Project tabs - mobile */
  .project-tabs {
    gap: 8px;
  }

  .project-tab {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .project-panel .case-study {
    padding: 25px;
  }

  /* Docs tables - mobile */
  .docs-table {
    font-size: 0.9rem;
  }

  .docs-table th,
  .docs-table td {
    padding: 10px 12px;
  }

  .docs-table code {
    font-size: 0.8rem;
  }

  /* Code blocks - mobile */
  pre {
    padding: 15px;
    font-size: 0.85rem;
  }

  /* Footer - mobile: just centered wordmark logo */
  .footer .container {
    justify-content: center;
    align-items: center;
    min-height: 80px;
  }

  .footer-nav {
    display: none;
  }

  .footer .logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer .logo img:not(.logo-wordmark) {
    display: none;
  }

  .footer .logo-wordmark {
    display: block;
  }
}

/* Contact Form */
.contact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.contact-header-text {
  text-align: left;
}

.contact-header-text h1 {
  margin-bottom: 10px;
}

.contact-header-text p {
  margin: 0;
  font-size: 1.1rem;
}

.contact-icon {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-header {
    flex-direction: column;
    text-align: center;
  }

  .contact-header-text {
    text-align: center;
  }

  .contact-icon {
    width: 120px;
  }
}

.contact-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-group {
  text-align: left;
}

.contact-form-group label {
  display: block;
  font-family: 'TT Travels', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form-group label .required {
  color: #e74c3c;
}

.contact-form-group label .optional {
  color: #999;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.2s;
}

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

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

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

.contact-error {
  margin-top: 20px;
  color: #e74c3c;
  font-size: 0.95rem;
}

.contact-success {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-success-icon {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.contact-success p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}
