/* Home Page Styles - Override for home page specific styles */

/* Hero section overrides for home page */
.hero {
  text-align: left;
}

.hero__content {
  text-align: left;
}

.hero__content h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.seo-intro {
  max-width: 100%;
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.seo-intro p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Services grid for catalog landing */
.services-grid {
  margin: 40px auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.service-card h2,
.service-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #1f2d3b;
}

.service-card p {
  margin: 0 0 16px;
  color: #3a4755;
  line-height: 1.6;
}

.service-card--placeholder {
  background: rgba(52, 73, 94, 0.08);
  border: 1px dashed rgba(44, 62, 80, 0.3);
}

/* Examples Section */
.examples-section {
  margin-bottom: 80px;
}

.examples-section h2 {
  font-size: 36px;
  font-weight: 600;
  color: #1a252f;
  text-align: center;
  margin: 0 0 16px;
}

.section-intro {
  text-align: center;
  font-size: 16px;
  color: #2c3e50;
  margin: 0 0 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 500;
}

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.example-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 8px 0;
  margin-bottom: 16px;
}

.example-card summary::-webkit-details-marker {
  display: none;
}

.example-card summary::after {
  content: "▼";
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.example-card[open] summary::after {
  transform: rotate(180deg);
}

.example-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.example-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Table Styles */
.example-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  overflow: hidden;
}

.example-table thead {
  background: var(--accent);
  color: #fff;
}

.example-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.example-table th:first-child {
  padding-left: 12px;
}

.example-table th:last-child {
  padding-right: 12px;
  text-align: right;
}

.example-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.example-table tbody tr:hover {
  background: rgba(52, 152, 219, 0.05);
}

.example-table tbody tr:last-child {
  border-bottom: none;
}

.example-table td {
  padding: 10px 8px;
  color: var(--text);
  vertical-align: top;
}

.example-table td:first-child {
  padding-left: 12px;
  font-weight: 500;
  color: var(--accent);
}

.example-table td:nth-child(2) {
  color: #34495e;
  font-size: 13px;
  line-height: 1.5;
}

.example-table td:last-child {
  padding-right: 12px;
  text-align: right;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}

.example-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.example-link-seo {
  display: inline-block;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.example-link-seo:hover {
  color: var(--accent);
  text-decoration: underline;
}

.example-link {
  display: inline-block;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.example-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer styles are inherited from styles.css */

/* FAQ Section */
.faq-section {
  margin: 80px 0;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
  font-size: 32px;
  font-weight: 600;
  color: #1a252f;
  margin: 0 0 32px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(52, 152, 219, 0.2);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #1a252f;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: rgba(52, 152, 219, 0.05);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 16px;
  color: #34495e;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

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

  .example-table {
    font-size: 12px;
  }

  .example-table th,
  .example-table td {
    padding: 8px 6px;
  }
}

@media (max-width: 600px) {
  .home-page {
    padding: 16px;
  }

  .hero-section {
    padding: 40px 16px;
    margin-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .examples-section h2 {
    font-size: 28px;
  }

  .example-card {
    padding: 16px;
  }

  .example-table {
    font-size: 11px;
  }

  .example-table th,
  .example-table td {
    padding: 6px 4px;
  }

  .example-table td:nth-child(2) {
    font-size: 11px;
  }
}
