@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #f5f5f7;
  --fg: #141821;
  --card: #ffffff;
  --primary: #0066cc;
  --primary-fg: #ffffff;
  --secondary: #d6336c;
  --secondary-fg: #ffffff;
  --accent: #2e9e6e;
  --muted: #e8e8ed;
  --muted-fg: #6b7280;
  --border: #dfe1e6;
  --radius: 0.75rem;
  --shadow: 0 4px 24px -4px rgba(20,24,33,0.08);
  --shadow-hover: 0 12px 32px -8px rgba(20,24,33,0.15);
  --hero-gradient: linear-gradient(135deg, #0066cc 0%, #7c3aed 50%, #d6336c 100%);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.logo span { background: var(--hero-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 1.5rem; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; }
.nav a:hover { color: var(--fg); }

/* Hero */
.hero {
  position: relative; padding: 5rem 1rem; text-align: center; color: var(--primary-fg); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-gradient); opacity: 0.8; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; opacity: 0.85; max-width: 640px; margin: 0 auto 2rem; }
.hero-btn {
  display: inline-block; background: var(--card); color: var(--fg);
  font-family: var(--font-display); font-weight: 600;
  padding: 0.75rem 2rem; border-radius: var(--radius);
  transition: box-shadow 0.2s;
}
.hero-btn:hover { box-shadow: var(--shadow-hover); }

/* Cards Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* Blog Card */
.blog-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-card-img {
  height: 12rem; overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.badge {
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 9999px;
  color: var(--primary-fg);
}
.badge-primary { background: var(--primary); }
.badge-secondary { background: var(--secondary); }
.badge-accent { background: var(--accent); }
.blog-card-title { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.875rem; color: var(--muted-fg); flex: 1; }
.read-more { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }

/* Section */
.section { padding: 4rem 0; }
.section-title { font-weight: 700; font-size: 1.5rem; margin-bottom: 2rem; }

/* Featured */
.featured { display: flex; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: -3rem; position: relative; z-index: 10; }
.featured-img { width: 50%; min-height: 20rem; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.featured:hover .featured-img img { transform: scale(1.05); }
.featured-body { padding: 2rem; width: 50%; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) {
  .featured { flex-direction: column; }
  .featured-img, .featured-body { width: 100%; }
  .hero h1 { font-size: 1.75rem; }
  .nav { display: none; }
}

/* Footer */
.footer { background: var(--fg); color: var(--primary-fg); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 3rem 0; }
.footer h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer h4 { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; margin-bottom: 0.75rem; }
.footer p, .footer li, .footer a { font-size: 0.875rem; opacity: 0.7; }
.footer a:hover { opacity: 1; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.75rem; opacity: 0.5; }

/* Legal pages */
.legal h2 { font-weight: 700; font-size: 1.25rem; margin-top: 1.5rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin-left: 1.25rem; margin-bottom: 1rem; color: var(--muted-fg); }
.legal li { margin-bottom: 0.25rem; }
.info-box { background: var(--muted); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; font-size: 0.875rem; }

/* Contact form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.625rem 1rem; font-size: 0.875rem; font-family: var(--font-body);
  background: var(--card);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,102,204,0.2); }
.btn-primary {
  display: inline-block; width: 100%; background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-display); font-weight: 600; padding: 0.75rem;
  border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.875rem;
}
.btn-primary:hover { opacity: 0.9; }

/* Gradient backgrounds for cards */
.grad-blue { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.grad-pink { background: linear-gradient(135deg, #ec4899, #f97316); }
.grad-green { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.grad-indigo { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.grad-rose { background: linear-gradient(135deg, #f43f5e, #ef4444); }
.grad-amber { background: linear-gradient(135deg, #f59e0b, #eab308); }

/* Back link */
.back-link { display: inline-block; font-size: 0.875rem; color: var(--primary); margin-bottom: 1.5rem; }
.back-link:hover { text-decoration: underline; }
