/* =====================================================
   Nodig.si — Additional Pages Styles
   About, Contact, Support pages
   ===================================================== */

/* Page Hero */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Content Grid (Sidebar Layout) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.content-main h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.benefit-card h4 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Sidebar */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact-list, .quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li, .quick-links li {
  padding: 0.5rem 0;
}

.contact-list a, .quick-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list a:hover, .quick-links a:hover {
  color: var(--accent);
}

/* CTA Section */
.bg-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: white;
  padding: 4rem 0;
}

.bg-gradient h2, .bg-gradient p {
  color: white;
}

.bg-gradient p {
  opacity: 0.9;
}

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

.btn-white {
  background: white;
  color: var(--accent);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrap h2 {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

.contact-form button {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info .info-card h3 {
  color: var(--text);
}

.text-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Support Page */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.support-card h3 {
  margin-bottom: 0.75rem;
}

.support-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

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

/* FAQ */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section h2 {
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--accent);
}

/* Service Section */
.service-section h2 {
  margin-bottom: 1.5rem;
}

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

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}

.service-item h4 {
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-grid li {
  padding: 0.25rem 0;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom small {
  color: var(--muted);
}

/* =====================================================
   Homepage Specific Styles
   ===================================================== */

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(8,11,16,0.4) 0%, rgba(8,11,16,0.75) 50%, rgba(8,11,16,0.88) 100%),
    url('/images/robot-pipe-2.webp') center center / cover no-repeat scroll;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

[data-theme="light"] .hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.88) 100%),
    url('/images/robot-pipe-2.webp') center center / cover no-repeat scroll;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Products Showcase */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-showcase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.product-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.product-showcase-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}

.product-showcase-card:hover .product-showcase-image img {
  transform: scale(1.05);
}

.product-showcase-content {
  padding: 1.25rem;
}

.product-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-badge.compact {
  background: #10b981;
}

.product-badge.coating {
  background: #9333ea;
}

.product-badge.new {
  background: #f59e0b;
}

.product-showcase-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-showcase-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-link {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Background Surface */
.bg-surface {
  background: var(--surface);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-ghost-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =====================================================
   Blog Styles
   ===================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.blog-card-placeholder {
  border-style: dashed;
  background: transparent;
}

.blog-card-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.blog-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

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

.blog-card-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.blog-archive-link {
  text-align: center;
  margin-top: 2rem;
}

.blog-archive-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-archive-link a:hover {
  text-decoration: underline;
}

/* Contact form note */
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Highlight card */
.highlight-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface));
  border-color: var(--accent);
}

/* =====================================================
   AEO — Answer Engine Optimization Block
   ===================================================== */
.aeo-block {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.aeo-lead {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.aeo-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
}

.aeo-cols div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.aeo-cols strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.aeo-cols span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* =====================================================
   FAQ Block (AEO)
   ===================================================== */
.faq-block {
  display: none;
  margin-top: 0;
}

.faq-block > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.faq-block .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
