/* === Bin Better — Magazine Layout === */
:root {
  --primary: #2d1b4e;
  --primary-light: #4a2d7a;
  --primary-glow: rgba(45, 27, 78, 0.08);
  --bg: #f5edd6;
  --bg-card: #fcf8ef;
  --accent: #e8b830;
  --accent-soft: #d4a31e;
  --text: #1a0f2e;
  --text-light: #5a4a72;
  --text-muted: #8a7a9e;
  --border: #ddd4be;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(45, 27, 78, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 27, 78, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 27, 78, 0.1);
  --tab-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: calc(var(--tab-height) + 24px);
  overflow-x: hidden;
}

/* === Container === */
.magazine {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* === Masonry Grid === */
.masonry {
  column-count: 2;
  column-gap: 24px;
  padding: 0;
}

.masonry > * {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 24px;
}

/* === Cards / Articles === */
.article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-wide {
  column-span: all;
  max-width: 100%;
}

/* === Typography === */
.article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 8px;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.article p {
  margin-bottom: 16px;
  color: var(--text);
}

.article p:last-child { margin-bottom: 0; }

.article .subhead {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 24px;
}

/* === Accent Decorators === */
.accent-bar {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}

/* === Tags / Badges === */
.tag {
  display: inline-block;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* === Stat Cards === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* === List Styles === */
.article ul, .article ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.article li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article ul li {
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* === Contact Cards === */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-info p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
}

/* === Bottom Tab Bar === */
.bottom-tabs {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(45, 27, 78, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(45, 27, 78, 0.25);
  border: 1px solid rgba(232, 184, 48, 0.2);
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-tabs::-webkit-scrollbar { display: none; }

.tab-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: rgba(245, 237, 214, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-link:hover {
  color: var(--bg);
  background: rgba(255,255,255,0.08);
}

.tab-link.active {
  color: var(--bg);
  background: var(--primary-light);
}

.tab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* === Legal Page Styles === */
.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.legal-section p, .legal-section li {
  margin-bottom: 10px;
  line-height: 1.75;
}

/* === About / Service Article Variants === */
.article-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* === CTA Section === */
.cta-box {
  background: var(--primary);
  color: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: center;
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(245, 237, 214, 0.85);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.cta-box .btn {
  background: var(--accent);
  color: var(--primary);
}

.cta-box .btn:hover {
  background: var(--accent-soft);
}

/* === Copyright Tag === */
.copyright-tag {
  text-align: center;
  padding: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .masonry {
    column-count: 1;
    column-gap: 0;
  }

  .article {
    padding: 24px 20px;
  }

  .article h1 {
    font-size: 1.6rem;
  }

  .article h2 {
    font-size: 1.25rem;
  }

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

  .bottom-tabs {
    bottom: 12px;
    padding: 4px;
    gap: 2px;
  }

  .tab-link {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .tab-icon {
    font-size: 0.95rem;
  }

  .cta-box {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .tab-link span:not(.tab-icon) {
    display: none;
  }

  .tab-link {
    padding: 8px 14px;
  }

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