
/* ===== iDempiere Mobile - Custom Styles ===== */

/* ----- Bilingual Toggle (details.lang-en) ----- */
details.lang-en {
  border-left: 3px solid #0073aa;
  padding: 1.2em 1.5em;
  margin: 2.5em 0;
  background: #f8f9fa;
  border-radius: 0 6px 6px 0;
  transition: all 0.3s ease;
}
details.lang-en[open] {
  background: #f0f4f8;
}
details.lang-en summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05em;
  color: #0073aa;
  padding: 0.3em 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
details.lang-en summary::-webkit-details-marker {
  display: none;
}
details.lang-en summary::before {
  content: "▶";
  font-size: 0.7em;
  transition: transform 0.2s;
}
details.lang-en[open] summary::before {
  transform: rotate(90deg);
}
details.lang-en summary:hover {
  color: #005177;
}

/* ----- FAQ Accordion (shared across homepage + /faq/) ----- */
.faq-section { background: #f8f9fa; }
.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 0.8em;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  padding: 1em 1.2em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3em;
  font-weight: 300;
  color: #666;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 1.2em 1em;
  color: #555;
  line-height: 1.7;
}

/* ----- Hero Section ----- */
.hero-section {
  background: linear-gradient(135deg, rgba(26,35,126,0.3) 0%, rgba(0,115,170,0.25) 50%, rgba(0,137,123,0.25) 100%), url(/asset/images/landing-hero.webp) center/cover no-repeat;
  color: #fff;
  padding: 4em 2em;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2.5em;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-size: 2.8em;
  font-weight: 800;
  margin: 0 0 0.2em;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 4px #000, -1px -1px 4px #000, 0 0 16px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: 1.3em;
  opacity: 0.92;
  margin-bottom: 1.8em;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px #000, -1px -1px 4px #000, 0 0 14px rgba(0,0,0,0.8), 0 0 24px rgba(0,0,0,0.5);
}
.hero-cta {
  display: inline-block;
  padding: 0.85em 2.2em;
  margin: 0.4em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-cta-primary {
  background: #fff;
  color: #1a237e;
}
.hero-cta-secondary {
  border: 2px solid rgba(255,255,255,0.9);
  color: #fff;
  background: transparent;
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ----- Numbers Bar ----- */
.numbers-bar {
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 2em 1.5em;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
  border-radius: 10px;
  margin: 2em 0;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 0.5em 1.5em;
}
.stat-number {
  display: block;
  font-size: 2.4em;
  font-weight: 800;
  color: #1a237e;
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 0.9em;
  color: #555;
  margin-top: 0.3em;
}

/* ----- Feature Grid ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin: 2.5em 0;
}
.feature-card {
  padding: 1.8em;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.feature-card h3 {
  margin: 0 0 0.6em;
  color: #1a237e;
  font-size: 1.15em;
}
.feature-card p {
  margin: 0;
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}
.feature-card .card-icon {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  display: block;
}

/* ----- Strengths Section ----- */
.strengths-section {
  margin: 2.5em 0;
  padding: 0;
}
.strengths-section h2 {
  text-align: center;
  color: #1a237e;
  margin-bottom: 1.2em;
}
.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2em;
  padding: 1.2em 1.5em;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.strength-item:hover {
  background: #f8f9fa;
}
.strength-item:last-child {
  border-bottom: none;
}
.strength-icon {
  font-size: 1.6em;
  min-width: 2em;
  text-align: center;
  line-height: 1.4;
}
.strength-title {
  font-weight: 600;
  color: #333;
  font-size: 1.05em;
  margin: 0 0 0.3em;
}
.strength-content h3 {
  margin: 0 0 0.3em;
  color: #333;
  font-size: 1.05em;
}
.strength-item p,
.strength-content p {
  margin: 0;
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ----- Tech Stack Bar ----- */
.tech-stack-bar,
.tech-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  padding: 2em;
  margin: 2em 0;
  text-align: center;
}
.tech-badge {
  display: inline-block;
  padding: 0.5em 1.2em;
  background: #e8edf2;
  border-radius: 20px;
  font-weight: 600;
  color: #1a237e;
  font-size: 0.95em;
}

/* ----- Quick Links ----- */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 2em;
  margin: 2em 0;
  flex-wrap: wrap;
}
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.8em;
  border: 2px solid #1a237e;
  border-radius: 6px;
  color: #1a237e;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.quick-links a:hover {
  background: #1a237e;
  color: #fff;
}

/* ----- Module List (Feature pages) ----- */
.module-list {
  margin: 1.5em 0;
}
.module-item {
  padding: 1.2em 1.5em;
  border-left: 3px solid #e2e8f0;
  margin-bottom: 1em;
  transition: border-color 0.2s;
}
.module-item:hover {
  border-left-color: #0073aa;
}
.module-item h3 {
  margin: 0 0 0.4em;
  font-size: 1.05em;
  color: #333;
}
.module-item p {
  margin: 0;
  color: #666;
  font-size: 0.93em;
  line-height: 1.6;
}
.module-item .module-tag {
  display: inline-block;
  padding: 0.15em 0.6em;
  background: #e8f4fd;
  color: #0073aa;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
  margin-left: 0.5em;
}

/* ----- Section Navigation Cards ----- */
.section-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2em;
  margin: 2em 0;
}
.section-nav a {
  display: block;
  padding: 1.5em;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.section-nav a:hover {
  border-color: #0073aa;
  box-shadow: 0 4px 12px rgba(0,115,170,0.1);
  transform: translateY(-2px);
}
.section-nav a h3 {
  color: #1a237e;
  margin: 0 0 0.3em;
}
.section-nav a p {
  color: #666;
  margin: 0;
  font-size: 0.9em;
}

/* ----- Code Blocks (Developer Guide) ----- */
pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.6;
  margin: 1.5em 0;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
code {
  background: #f0f4f8;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: #d63384;
}

/* Inline-styled ASCII diagram containers (override hardcoded background) */
.entry-content div[style*="background:#f8f9fa"],
.entry-content div[style*="background: #f8f9fa"] {
  background: #1e1e2e !important;
  color: #cdd6f4 !important;
  border-color: #2d2d50 !important;
}
.entry-content div[style*="background:#f8f9fa"] pre,
.entry-content div[style*="background: #f8f9fa"] pre {
  color: #cdd6f4;
}

/* ----- Tables ----- */
.wp-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.93em;
}
.wp-table th,
table th {
  background: #f0f4f8;
  padding: 0.8em 1em;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
}
.wp-table td,
table td {
  padding: 0.7em 1em;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}
.wp-table tr:hover td,
table tr:hover td {
  background: #f8f9fa;
}

/* ----- Step Guide ----- */
.step-guide {
  counter-reset: step-counter;
  margin: 1.5em 0;
}
.step-guide .step {
  counter-increment: step-counter;
  padding: 1em 1em 1em 3.5em;
  position: relative;
  margin-bottom: 1em;
  border-left: 2px solid #e2e8f0;
}
.step-guide .step::before {
  content: counter(step-counter);
  position: absolute;
  left: -0.7em;
  top: 0.8em;
  width: 2em;
  height: 2em;
  background: #1a237e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
}

/* ----- Page Header Enhancements ----- */
.page-intro {
  font-size: 1.1em;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #f0f0f0;
}

/* ----- CTA Section ----- */
.cta-section {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f4f8 50%, #e8edf2 100%);
  border-radius: 12px;
  padding: 2.5em 2em;
  margin: 0 0 2.5em;
  text-align: center;
}
.cta-section h2 {
  color: #1a237e;
  margin: 0 0 0.5em;
  font-size: 1.6em;
}
.cta-section > p {
  color: #555;
  margin: 0 0 1.5em;
  font-size: 1.05em;
}
.cta-section .feature-grid {
  margin: 0;
}
.cta-section .feature-card {
  text-align: left;
}
.feature-card > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}
.cta-btn {
  display: inline-block;
  margin-top: 0;
  padding: 0.6em 1.5em;
  background: #1a237e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover {
  background: #0073aa;
  color: #fff;
  transform: translateY(-2px);
}

/* ----- Table horizontal scroll on mobile ----- */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ----- Menu Group Headers ----- */
.main-navigation .sub-menu .menu-item-has-children > a {
  font-weight: 700;
  color: #1a237e;
  pointer-events: none;
  cursor: default;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.3em;
  margin-top: 0.5em;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2em;
  }
  .hero-subtitle {
    font-size: 1.1em;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .numbers-bar {
    gap: 1em;
  }
  .stat {
    padding: 0.3em 1em;
  }
  .stat-number {
    font-size: 1.8em;
  }
  .section-nav {
    grid-template-columns: 1fr;
  }
  .strength-item {
    flex-direction: column;
    gap: 0.5em;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    padding: 1.5em 1em;
  }
}
@media (max-width: 480px) {
  .hero-section {
    padding: 2.5em 1.2em;
  }
  .hero-title {
    font-size: 1.6em;
  }
  .hero-subtitle {
    font-size: 0.95em;
  }
  .hero-cta {
    display: block;
    margin: 0.5em auto;
    max-width: 250px;
    text-align: center;
  }
  .quick-links {
    flex-direction: column;
    align-items: center;
  }
}


/* ----- Testimonial Section ----- */
.testimonial-section {
  margin: 2.5em 0;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin: 1.5em 0;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.8em;
  text-align: left;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  font-size: 3em;
  color: #e2e8f0;
  position: absolute;
  top: 0.1em;
  left: 0.3em;
  line-height: 1;
}
.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  font-style: italic;
  color: #555;
  line-height: 1.7;
  font-size: 0.95em;
}
.testimonial-card .testimonial-author {
  margin-top: 1em;
  font-weight: 600;
  color: #1a237e;
  font-size: 0.9em;
}

/* ----- Hide site title text (logo already contains it) ----- */
.site-branding .main-title {
  display: none;
}

/* ===== Accessibility ===== */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visible focus indicators for keyboard navigation */
:focus-visible {
    outline: 2px solid #1a237e;
    outline-offset: 2px;
}
