/* site.css — btalker SaaS shared stylesheet */
/* Responsive, professional design for all website pages */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-accent: #0ea5e9;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header / Nav ---- */
.site-header {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.site-logo span {
  color: var(--color-accent);
}
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-primary-dark); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-secondary { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-block { display: block; width: 100%; }

/* ---- Sections ---- */
.section {
  padding: 4rem 1.5rem;
}
.section-alt { background: var(--color-bg-alt); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}
.section .section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---- Pricing Cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}
.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 1rem 0;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--color-text-light); }
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}
.pricing-features li::before {
  content: '✓ ';
  color: var(--color-success);
  font-weight: 700;
}

/* ---- Forms ---- */
.form-container {
  max-width: 440px;
  margin: 3rem auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-container h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.form-container .form-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.form-success {
  color: var(--color-success);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem;
  background: #f0fdf4;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.form-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.form-footer a {
  color: var(--color-primary);
  text-decoration: none;
}
.form-footer a:hover { text-decoration: underline; }

/* ---- Dashboard / Account ---- */
.dashboard {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.dashboard-header h1 {
  font-size: 1.75rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.dashboard-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.dashboard-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-right: 1.5rem;
}
.footer-links a:hover { color: #fff; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .site-nav { gap: 0.75rem; }
  .section { padding: 2.5rem 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .dashboard-header { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .site-nav .hide-mobile { display: none; }
  .hero { padding: 2.5rem 1rem; }
  .form-container { margin: 2rem 1rem; }
}
