/* === JackzAppz.com - Main Stylesheet === */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
}

/* Colors */
:root {
  --primary: #1e3a5f;
  --primary-light: #1e40af;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --bg-light: #f0f4f8;
  --bg-white: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --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);
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; color: var(--primary); }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: none;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover {
  background: var(--accent-dark); color: white; transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: white;
}

/* Header */
.site-header {
  background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header-inner .logo { display: flex; align-items: center; gap: 0.5rem; }
.header-inner .logo img { height: 36px; width: auto; }
.header-inner .logo span { font-weight: 800; font-size: 1.35rem; color: var(--primary); }
.header-inner .logo span span { color: var(--accent); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 1rem; border-radius: 6px;
  color: var(--text-primary); font-weight: 500; font-size: 0.95rem;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--bg-light); color: var(--accent);
}
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); padding: 0.5rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white; padding: 5rem 0 4rem; text-align: center;
}
.hero h1 { color: white; font-size: 3rem; max-width: 700px; margin: 0 auto 1rem; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }
.hero .btn-primary { background: white; color: var(--primary); }
.hero .btn-primary:hover { background: var(--bg-light); color: var(--primary); }

/* Sections */
section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Product Cards (larger, feature-style) */
.product-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card .card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.product-card .tag {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem;
}
.tag-cdl { background: #dbeafe; color: #1e40af; }
.tag-dl { background: #f0fdf4; color: #166534; }
.product-card p { color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }
.product-card .btn { align-self: flex-start; }

/* Two column layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.two-col img { max-width: 100%; border-radius: var(--radius); }

/* Blog */
.blog-list { max-width: 800px; margin: 0 auto; }
.blog-item {
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.blog-item:first-child { padding-top: 0; }
.blog-item:last-child { border-bottom: none; }
.blog-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-item h3 { margin-bottom: 0.5rem; }
.blog-item h3 a { color: var(--primary); }
.blog-item h3 a:hover { color: var(--accent); }
.blog-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-light); padding: 0.75rem 0; font-size: 0.9rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { color: var(--text-primary); font-weight: 500; }

/* Page Header (inner pages) */
.page-header {
  background: var(--bg-light); padding: 3rem 0; text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow-lg); }
  .mobile-toggle { display: block; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
