/**
 * AI Business Automation Service Stylesheet
 * Company: Sunlight Trading Co., Ltd.
 * Seamlessly harmonized with Dewi / Sunlight Trading design system
 */

/*--------------------------------------------------------------
# Hero Section Harmonized with Main Site
--------------------------------------------------------------*/
.ai-hero-section {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000910;
}

.ai-hero-section .ai-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
  z-index: 1;
}

.ai-hero-section:before {
  content: "";
  position: absolute;
  inset: 0;
  /* Soft translucent shadow (do bong mo): showcases the rich background image clearly */
  background: linear-gradient(
    90deg,
    rgba(0, 9, 16, 0.42) 0%,
    rgba(0, 9, 16, 0.18) 48%,
    rgba(0, 9, 16, 0.02) 100%
  );
  z-index: 2;
}

.ai-hero-section .ai-hero-overlay {
  display: none;
}

.ai-hero-section .container {
  position: relative;
  z-index: 3;
}

/* Breadcrumb inside Dark Hero */
.ai-hero-breadcrumb {
  margin-bottom: 25px;
}

.ai-hero-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.ai-hero-breadcrumb ol li {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.ai-hero-breadcrumb ol li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.ai-hero-breadcrumb ol li a:hover {
  color: var(--accent-color);
}

.ai-hero-breadcrumb ol li+li::before {
  content: "/";
  display: inline-block;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.4);
}

.ai-hero-breadcrumb ol li.current {
  color: #ffffff;
  font-weight: 600;
}

/* Hero Typography */
.ai-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 50px;
  background: rgba(255, 74, 23, 0.18);
  border: 1px solid rgba(255, 74, 23, 0.45);
  color: #ff7d59;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.ai-hero-title {
  font-family: var(--heading-font);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.ai-hero-title span {
  display: inline-block;
  color: #ffffff;
}

.ai-hero-lead {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.ai-hero-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 580px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.ai-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.btn-ai-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 74, 23, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ai-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 74, 23, 0.45);
}

.btn-ai-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ai-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.ai-hero-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Floating AI Visual on Hero Right */
.ai-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.ai-hero-quote {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ai-glass-badges {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: flex-end;
}

.ai-glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ai-glass-badge i {
  font-size: 1.125rem;
  color: #5bb3ff;
}

/*--------------------------------------------------------------
# Problems Section
--------------------------------------------------------------*/
.ai-problem-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 26px 22px;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.ai-problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.ai-problem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-problem-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 74, 23, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.ai-problem-tag {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.ai-problem-text {
  font-size: 0.9375rem;
  color: var(--default-color);
  line-height: 1.65;
  margin-bottom: 0;
}

.ai-problems-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 45px 0 15px;
}

.ai-problems-arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--heading-color);
  margin-bottom: 20px;
}

.ai-bridge-box {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 14px;
  padding: 32px 36px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.ai-bridge-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.ai-bridge-desc {
  font-size: 0.9375rem;
  color: var(--default-color);
  line-height: 1.8;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.ai-service-card {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ai-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.ai-service-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf2f7;
}

.ai-service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ai-service-card:hover .ai-service-img-wrapper img {
  transform: scale(1.05);
}

.ai-service-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ai-service-number {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ai-service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 48px;
}

.ai-service-desc {
  font-size: 0.875rem;
  color: var(--default-color);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.ai-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: gap 0.2s ease;
}

.ai-service-link:hover {
  gap: 10px;
  color: color-mix(in srgb, var(--accent-color), black 15%);
}

/*--------------------------------------------------------------
# Features / Why Sunlight Section
--------------------------------------------------------------*/
.ai-features-banner {
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 35px;
}

.ai-features-lead-content {
  padding: 35px;
}

.ai-features-visual-box {
  position: relative;
  height: 100%;
  min-height: 220px;
}

.ai-features-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-features-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(21, 34, 43, 0.9) 0%, transparent 100%);
  color: #ffffff;
}

.ai-handwritten-slogan {
  font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif;
  font-size: 1.625rem;
  color: #ffffff;
  line-height: 1.2;
}

.ai-feature-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px 20px;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.ai-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.ai-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 74, 23, 0.08);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 14px;
}

.ai-feature-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ai-feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
  line-height: 1.4;
}

.ai-feature-desc {
  font-size: 0.875rem;
  color: var(--default-color);
  line-height: 1.65;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Target Industries Section
--------------------------------------------------------------*/
.ai-industry-item {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-industry-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.ai-industry-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.ai-industry-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0;
}

.ai-industry-banner-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ai-industry-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-industry-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 34, 43, 0.88) 0%, rgba(21, 34, 43, 0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.ai-industry-banner-title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}

/*--------------------------------------------------------------
# Implementation Flow Section
--------------------------------------------------------------*/
.ai-flow-step {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  height: 100%;
  transition: all 0.3s ease;
}

.ai-flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.ai-flow-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(255, 74, 23, 0.3);
}

.ai-flow-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.ai-flow-step-desc {
  font-size: 0.8125rem;
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.ai-faq-item {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ai-faq-item.active {
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.ai-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--heading-color);
  cursor: pointer;
  outline: none;
}

.ai-faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 74, 23, 0.1);
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.ai-faq-icon {
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ai-faq-item.active .ai-faq-icon {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.ai-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 20px;
}

.ai-faq-answer-inner {
  padding-bottom: 18px;
  padding-left: 40px;
  font-size: 0.875rem;
  color: var(--default-color);
  line-height: 1.75;
}

/*--------------------------------------------------------------
# Final CTA Section (Yokohama Night Skyline)
--------------------------------------------------------------*/
.ai-final-cta {
  position: relative;
  background-color: #000910;
  color: #ffffff;
  padding: 90px 0;
  overflow: hidden;
  text-align: center;
}

.ai-final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.ai-final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 9, 16, 0.82) 0%, rgba(13, 27, 42, 0.68) 100%);
}

.ai-final-cta .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.ai-cta-slogan {
  font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif;
  font-size: 2rem;
  color: #ff9d82;
  margin-bottom: 16px;
}

.ai-final-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 20px;
}

.ai-final-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.85;
  margin-bottom: 32px;
}

.ai-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/*--------------------------------------------------------------
# Service Detail Modal & Quick Form
--------------------------------------------------------------*/
.modal {
  --heading-color: #11202f !important;
  --default-color: #334155 !important;
  --background-color: #ffffff !important;
  --surface-color: #ffffff !important;
  --contrast-color: #11202f !important;
  color: #334155 !important;
}

.modal-content {
  background-color: #ffffff !important;
  color: #334155 !important;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ai-modal-header {
  border-bottom: 1px solid #edf2f7;
  padding: 20px 24px;
  background: #f8fafc;
}

.ai-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #11202f !important;
}

.ai-modal-body {
  padding: 24px;
  color: #334155 !important;
  background-color: #ffffff !important;
}

.ai-modal-body p.text-muted {
  color: #64748b !important;
}

.ai-modal-flow-box {
  background: #f1f4fa;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.875rem;
  color: #11202f !important;
  font-weight: 600;
}

.ai-modal-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-modal-list li {
  font-size: 0.875rem;
  color: #334155 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-modal-list li i {
  color: var(--accent-color);
}

.ai-modal-trust {
  background: rgba(255, 74, 23, 0.08);
  border-left: 4px solid var(--accent-color);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: #8c2a0b !important;
  margin-bottom: 18px;
}

.ai-form-group {
  margin-bottom: 16px;
}

.ai-form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #11202f !important;
  margin-bottom: 6px;
  display: block;
}

.ai-form-label .required {
  background: var(--accent-color);
  color: #ffffff !important;
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}

.ai-form-input,
.ai-form-textarea {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.9375rem;
  background-color: #ffffff !important;
  color: #11202f !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-form-input::placeholder,
.ai-form-textarea::placeholder {
  color: #94a3b8 !important;
}

.ai-form-input:focus,
.ai-form-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 74, 23, 0.15);
  outline: none;
  background-color: #ffffff !important;
  color: #11202f !important;
}

.form-check-label {
  color: #334155 !important;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .ai-hero-section {
    padding: 120px 0 70px;
  }
  .ai-hero-title {
    font-size: 2.125rem;
  }
  .ai-hero-visual {
    align-items: center;
    margin-top: 30px;
  }
  .ai-hero-quote {
    text-align: center;
  }
  .ai-glass-badges {
    align-items: center;
  }
  .ai-modal-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ai-hero-section {
    padding: 110px 0 60px;
  }
  .ai-hero-title {
    font-size: 1.75rem;
  }
  .ai-hero-lead {
    font-size: 1rem;
  }
  .ai-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-ai-primary,
  .btn-ai-secondary {
    width: 100%;
  }
  .ai-bridge-box {
    padding: 20px 16px;
  }
  .ai-final-title {
    font-size: 1.625rem;
  }
  .ai-final-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* Ensure Logo in Header is always pure white 30px bold matching homepage */
.header .logo,
.header .logo a,
.header .logo h1,
.header .logo .sitename {
  color: #ffffff !important;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
}

