/* ====== SHARED CSS — Cost Seg Smart ====== */
/* Common variables, reset, typography, nav, and footer styles */

:root {
  --primary: #0B1F3A;
  --primary-light: #1A3A5C;
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --dark: #0B1220;
  --gold: #F59E0B;
  --bg: #FAFCFE;
  --card-bg: #FFFFFF;
  --text: #2C3E50;
  --text-light: #6B7C8D;
  --border: #E2EAF0;
  --success: #27AE60;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(13,43,62,0.08);
  --shadow-lg: 0 12px 48px rgba(13,43,62,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* ====== SHARED NAV ====== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo {
  font-size: 1.5rem; font-weight: 800; text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-cta {
  background: linear-gradient(135deg, #2563EB, #3B82F6) !important; color: white !important;
  padding: 10px 24px; border-radius: 10px; font-weight: 600 !important;
  transition: all 0.3s !important; box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  text-decoration: none; font-size: 0.95rem;
}
.nav-cta:hover { background: linear-gradient(135deg, #3B82F6, #60A5FA) !important; transform: translateY(-1px); }

/* ====== SHARED BUTTON ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 10px; font-size: 1.05rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white; box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }

/* ====== SHARED SECTION ====== */
section { padding: 100px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: 2.25rem; font-weight: 800; color: var(--dark); margin-bottom: 16px;
}
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ====== SHARED FOOTER ====== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6); padding: 48px 24px;
  text-align: center; font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ====== SHARED FAQ ====== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white; border-radius: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.faq-question, .faq-q {
  padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 600; font-size: 1rem; color: var(--dark);
  transition: background 0.2s;
}
.faq-question:hover, .faq-q:hover { background: #F8FBFD; }
.faq-arrow, .faq-q .arrow { transition: transform 0.3s; font-size: 1.2rem; color: var(--accent); }
.faq-item.open .faq-arrow, .faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-answer, .faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px; color: var(--text-light); line-height: 1.7; font-size: 0.95rem;
}
.faq-item.open .faq-answer, .faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ====== SHARED RESPONSIVE ====== */
@media (max-width: 768px) {
  .section-header h2 { font-size: 1.8rem; }
}
