/* ============================================================
   common.css — Your CS Firm & Associates | Company Secretaries
   Shared styles + 20-theme switcher system
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #f5f7fa; }

/* ── THEME VARIABLES (default: indigo-orange, matching CA site) ─ */
:root {
  --primary:        #3949AB;
  --primary-dark:   #1a237e;
  --primary-light:  #5c6bc0;
  --accent:         #FF9800;
  --accent-hover:   #e65100;
  --bg:             #f5f7fa;
  --surface:        #ffffff;
  --text:           #333333;
  --text-muted:     #666666;
  --border:         #e0e0e0;
  --shadow:         rgba(57,73,171,0.12);
  --footer-bg:      #3949AB;
  --hero-bg:        linear-gradient(135deg, #3949AB 0%, #1a237e 100%);
}

/* ── 20 THEMES ────────────────────────────────────────────── */

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  background: var(--primary, #3949AB);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 10px 50px;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.13); }
.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.cs-logo { height: 60px; width: auto; }
.navbar-text { display: flex; flex-direction: column; }
.navbar-logo { font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.2; }
.navbar-logo span { color: var(--accent, #FF9800); }
.navbar-subtitle { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,0.85); font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--accent); }
.nav-articles-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(255,152,0,0.4);
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.nav-articles-link::before { content: '✦ '; font-size: 0.65rem; }
.nav-articles-link:hover {
  background: linear-gradient(135deg, var(--accent-hover), #bf360c) !important;
  color: #fff !important;
}
.nav-articles-link::after { display: none; }
.burger-menu { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.burger-menu span { width: 25px; height: 3px; background: #fff; transition: all 0.3s ease; }
.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(8px,8px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(8px,-8px); }
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff !important;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.85rem;
  padding: 9px 20px; border-radius: 50px; white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease; flex-shrink: 0;
}
.nav-cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
  position: fixed; width: 60px; height: 60px;
  bottom: 30px; right: 30px;
  background: #25D366; border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.3s;
}
.wa-float:hover { background: #20BA5A; transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; fill: white; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: white; padding: 60px 50px 30px; }
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 50px; margin-bottom: 40px;
}
.footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  display: block; margin-bottom: 10px; transition: color 0.3s;
}
.footer-section a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
}

/* ── ARTICLE PAGE — HERO ──────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  padding: 120px 50px 60px;
  text-align: center;
}
.tag {
  display: inline-block; background: var(--accent); color: white;
  font-size: 0.78rem; font-weight: 600; padding: 5px 15px;
  border-radius: 50px; margin-bottom: 15px; letter-spacing: 1px;
}
.hero h1 { color: white; font-size: 2rem; font-weight: 800; max-width: 800px; margin: 0 auto 15px; line-height: 1.3; }
.meta { color: rgba(255,255,255,0.75); font-size: 0.85rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ── ARTICLE PAGE — CONTENT ───────────────────────────────── */
.container { max-width: 800px; margin: 0 auto; padding: 40px 30px; }
.back-link { margin-bottom: 22px; }
.back-link a { color: var(--primary); text-decoration: none; font-size: 0.88rem; font-weight: 500; }

.toc {
  background: white; border-radius: 12px; padding: 22px 28px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08); margin-bottom: 35px;
  border-left: 4px solid var(--accent);
}
.toc h3 { color: var(--primary); font-size: 0.95rem; margin-bottom: 12px; font-weight: 700; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--primary); text-decoration: none; font-size: 0.88rem; }
.toc a:hover { color: var(--accent); }

.content {
  background: white; border-radius: 12px; padding: 35px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.content h2 {
  color: var(--primary); font-size: 1.25rem; font-weight: 700;
  margin: 30px 0 12px; padding-top: 18px;
  border-top: 1px solid #f0f2ff;
}
.content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content h3 { color: var(--primary-dark); font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
.content p { color: #555; line-height: 1.8; margin-bottom: 12px; font-size: 0.93rem; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 12px; }
.content li { color: #555; line-height: 1.75; margin-bottom: 5px; font-size: 0.93rem; }
.content strong { color: #333; }

.box {
  background: #f0f4ff; border-radius: 10px;
  padding: 18px 22px; margin: 18px 0; border-left: 4px solid var(--primary);
}
.box p { margin: 0; color: #333; font-size: 0.9rem; }
.warn { background: #fff3e0; border-left: 4px solid var(--accent); }

.table, .info-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.table th, .info-table th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; font-size: 0.83rem; }
.table td, .info-table td { padding: 9px 14px; border-bottom: 1px solid #e8ecff; font-size: 0.83rem; color: #555; }
.table tr:hover td, .info-table tr:hover td { background: #f8f9ff; }

.cta {
  background: var(--hero-bg);
  border-radius: 12px; padding: 28px; text-align: center; margin: 30px 0;
}
.cta h3 { color: white; font-size: 1.15rem; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 16px; font-size: 0.88rem; }
.cta a {
  display: inline-block; background: var(--accent); color: white;
  padding: 11px 28px; border-radius: 50px; font-weight: 700;
  text-decoration: none; font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta a:hover { background: var(--accent-hover); transform: translateY(-2px); }

.mini-cta {
  background: #f0f4ff; border-radius: 10px; padding: 16px 20px;
  margin: 20px 0; text-align: center; border: 1px solid #c5cae9;
}
.mini-cta p { margin: 0 0 10px; color: #333; font-size: 0.88rem; font-weight: 500; }
.mini-cta a {
  display: inline-block; background: var(--primary); color: white;
  padding: 8px 22px; border-radius: 50px; font-weight: 600;
  text-decoration: none; font-size: 0.85rem;
}

.disc {
  background: #fff3e0; border-radius: 10px;
  padding: 18px 22px; margin: 25px 0; border-left: 4px solid var(--accent);
}
.disc p { margin: 0; color: #555; font-size: 0.82rem; font-style: italic; line-height: 1.6; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > *:nth-child(n+7) { transition-delay: 0.30s; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }

@keyframes articleHeroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .tag    { animation: articleHeroUp 0.55s ease both 0.1s; }
.hero h1      { animation: articleHeroUp 0.6s ease both 0.25s; }
.hero .meta   { animation: articleHeroUp 0.55s ease both 0.4s; }

/* ── ARTICLE CLASS ALIASES ────────────────────────────────── */
.article-hero { background: var(--hero-bg); padding: 120px 50px 60px; text-align: center; }
.article-tag  { display: inline-block; background: var(--accent); color: white; font-size: 0.78rem; font-weight: 600; padding: 5px 15px; border-radius: 50px; margin-bottom: 15px; letter-spacing: 1px; }
.article-hero h1 { color: white; font-size: 2rem; font-weight: 800; max-width: 800px; margin: 0 auto 15px; line-height: 1.3; }
.article-meta { color: rgba(255,255,255,0.75); font-size: 0.85rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.article-container { max-width: 800px; margin: 0 auto; padding: 40px 30px; }
.article-content { background: white; border-radius: 12px; padding: 35px; box-shadow: 0 3px 15px rgba(0,0,0,0.08); }
.article-content h2 { color: var(--primary); font-size: 1.25rem; font-weight: 700; margin: 30px 0 12px; padding-top: 18px; border-top: 1px solid #f0f2ff; }
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-content h3 { color: var(--primary-dark); font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
.article-content p  { color: #555; line-height: 1.8; margin-bottom: 12px; font-size: 0.93rem; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 12px; }
.article-content li { color: #555; line-height: 1.75; margin-bottom: 5px; font-size: 0.93rem; }
.article-content strong { color: #333; }
.highlight-box { background: #f0f4ff; border-radius: 10px; padding: 18px 22px; margin: 18px 0; border-left: 4px solid var(--primary); }
.highlight-box p { margin: 0; color: #333; font-size: 0.9rem; }
.cta-box { background: var(--hero-bg); border-radius: 12px; padding: 28px; text-align: center; margin: 30px 0; }
.cta-box h3 { color: white; font-size: 1.15rem; margin-bottom: 8px; }
.cta-box p  { color: rgba(255,255,255,0.85); margin-bottom: 16px; font-size: 0.88rem; }
.cta-btn { display: inline-block; background: var(--accent); color: white; padding: 11px 28px; border-radius: 50px; font-weight: 700; text-decoration: none; font-size: 0.9rem; transition: background 0.2s ease, transform 0.2s ease; }
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.disclaimer-box { background: #fff3e0; border-radius: 10px; padding: 18px 22px; margin: 25px 0; border-left: 4px solid var(--accent); }
.disclaimer-box p { margin: 0; color: #555; font-size: 0.82rem; font-style: italic; line-height: 1.6; }
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 20px; right: 20px; background: #25D366; border-radius: 50%; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 998; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s; }
.whatsapp-float:hover { background: #20BA5A; transform: scale(1.1); }
.whatsapp-float svg { width: 34px; height: 34px; fill: white; }

/* ── MOBILE CTA PILL ──────────────────────────────────────── */
.mobile-cta-pill { display: none; }
@media (max-width: 768px) {
  .mobile-cta-pill {
    display: flex; position: fixed; bottom: 20px; left: 20px; z-index: 999;
    align-items: center; gap: 7px; background: var(--accent); color: #fff !important;
    text-decoration: none !important; font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 0.78rem; padding: 0 14px; height: 50px;
    border-radius: 25px; box-shadow: 0 4px 15px rgba(255,152,0,0.45); white-space: nowrap;
  }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 968px) {
  .nav-links {
    position: fixed; top: 70px; left: -100%;
    width: 100%; height: calc(100vh - 70px);
    background: var(--primary, #3949AB); flex-direction: column;
    padding: 30px; gap: 20px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }
  .nav-links a { color: rgba(255,255,255,0.9) !important; }
  .nav-links.active { left: 0; }
  .burger-menu { display: flex; }
  .navbar { padding: 10px 30px; }
  .cs-logo { height: 50px; }
  .footer { padding: 40px 20px 25px; }
  .footer-content { grid-template-columns: 1fr; gap: 25px; }
  .nav-cta-btn { display: none; }
}
@media (max-width: 768px) {
  .hero { padding: 95px 20px 38px; }
  .hero h1 { font-size: 1.5rem; }
  .container { padding: 25px 15px; }
  .content { padding: 22px 18px; }
  .navbar { padding: 10px 20px; }
}
@media (max-width: 480px) {
  .navbar { padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero .tag, .hero h1, .hero .meta { animation: none !important; opacity: 1 !important; }
}
