/* BM.ECOMTECHBD.COM — Professional Business Email Design */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #8B5CF6;
  --primary-bg: #f5f3ff;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --text: #1a1a2e;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --transition: 0.25s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.logo svg { flex-shrink: 0; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.logo-highlight { color: var(--primary); }
.footer-logo-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-bottom: 12px; }
.footer-logo-link span { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-logo-link:hover span { color: #c4b5fd; }

/* Nav */
.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

.nav-link:hover { color: var(--primary); background: var(--primary-bg); }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.5;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.dropdown-menu a:hover { background: var(--primary-bg); color: var(--primary); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 12px 0; }

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '\203A';
  margin-right: 6px;
  color: var(--text-muted);
}

.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active span { color: var(--text-light); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; line-height: 1.15; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 640px; margin: 0 auto 32px; line-height: 1.6; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .stat-number { font-size: 2rem; font-weight: 800; display: block; }
.hero-stat .stat-label { font-size: 0.85rem; opacity: 0.8; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f8f8ff; color: var(--primary-dark); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.hero .btn-primary,
.page-hero .btn-primary { background: #fff; color: var(--primary); }
.hero .btn-primary:hover,
.page-hero .btn-primary:hover { background: #f0ebff; color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.hero .btn-outline,
.page-hero .btn-outline,
.cta-section .btn-outline { color: #fff; border-color: rgba(255,255,255,0.8); }
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-section .btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 20px; line-height: 1.2; }
.section p { line-height: 1.75; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== FEATURE GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); transform: translateY(-2px); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* ===== PRICING TABLE ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.pricing-card.popular {
  border-color: var(--primary);
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pricing-card .price { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 16px 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card .price-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--secondary);
  font-weight: 700;
  margin-right: 10px;
}

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--primary-light); }

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

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after { content: '\2212'; color: var(--primary); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer { display: block; }

/* ===== ARTICLE / GUIDE CONTENT ===== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.2; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin: 32px 0 12px; }
.article-content p { margin-bottom: 16px; color: var(--text); }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; color: var(--text); }
.article-content li { margin-bottom: 8px; }

.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* Table of Contents */
.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 40px;
}

.toc h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 0.95rem; }
.toc a { color: var(--primary); }

/* Code blocks */
.code-block {
  background: var(--bg-dark);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Callout / Note */
.callout {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.callout p { margin: 0; color: var(--text); }
.callout strong { color: var(--primary-dark); }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th { background: var(--bg-light); font-weight: 600; color: var(--text); }
.comparison-table tr:hover { background: var(--bg-light); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card { text-align: center; padding: 24px; position: relative; }

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.9rem; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

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

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col .footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-brand { margin-top: 20px; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand .logo-highlight { color: var(--primary-light); }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 8px; line-height: 1.5; }

.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.75); font-size: 0.85rem; }

/* ===== RELATED SERVICES ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateY(-2px); color: var(--text); }
.related-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.related-card p { font-size: 0.85rem; color: var(--text-light); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 16px; }
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto 28px; font-size: 1.08rem; line-height: 1.7; }
.page-hero .btn-group { margin-bottom: 8px; }
.page-hero .hero-stats { margin-top: 40px; }

/* ===== 404 PAGE ===== */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-size: 6rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.page-404 h2 { font-size: 1.5rem; margin-bottom: 16px; }
.page-404 p { color: var(--text-light); margin-bottom: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 16px;
  }

  .nav-menu.active { display: block; }

  .nav-list { flex-direction: column; gap: 0; }

  .nav-link { padding: 12px 16px; }

  .nav-cta { display: block; text-align: center; margin: 8px 16px; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-dropdown.active .dropdown-menu { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .stat-number { font-size: 1.5rem; }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.75rem; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 1.75rem; }
  .article-content h1 { font-size: 1.75rem; }
  .article-content h2 { font-size: 1.35rem; }

  .page-404 h1 { font-size: 4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.75rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
}
