*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1140px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 44px; width: auto; }
.main-nav ul { display: flex; list-style: none; gap: 24px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .95rem; text-decoration: none; }
.main-nav a:hover { color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 60%, #3b82f6 100%); color: #fff; padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.15rem; max-width: 680px; margin: 0 auto 28px; opacity: .92; }
.hero-badges { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.hero-badge { text-align: center; }
.hero-badge strong { display: block; font-size: 1.1rem; }
.hero-badge span { font-size: .85rem; opacity: .85; }

.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: background .2s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #1f2937; }
.btn-primary:hover { background: #d97706; text-decoration: none; color: #1f2937; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }

/* Sections */
section { padding: 64px 20px; }
section:not(.hero):not(.cta-section):not(.newsletter-section):nth-of-type(even) { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 12px; font-size: 2rem; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 640px; margin: 0 auto 48px; }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1140px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; max-width: 1140px; margin: 0 auto; align-items: center; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card-body p { color: var(--text-light); font-size: .95rem; }
.card-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); opacity: .2; line-height: 1; }

/* Trending lists */
.trending-list { max-width: 800px; margin: 0 auto; }
.trending-item { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.trending-num { font-size: 2rem; font-weight: 800; color: var(--primary); min-width: 40px; }
.trending-item h3 { margin-bottom: 4px; }

/* Rating pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1140px; margin: 0 auto; }
.pillar { text-align: center; padding: 32px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar-icon { width: 64px; height: 64px; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.8rem; }
.pillar h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pillar p { color: var(--text-light); font-size: .9rem; }

/* Categories */
.categories { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.category-tag { padding: 10px 20px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-weight: 500; font-size: .9rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1140px; margin: 0 auto; }
.testimonial { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.testimonial p { font-style: italic; color: var(--text-light); margin-bottom: 12px; }
.testimonial cite { font-weight: 600; font-style: normal; font-size: .9rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: .9rem; margin-top: 4px; }

/* CTA */
.cta-section { background: linear-gradient(135deg, #1e3a8a, #1a56db); color: #fff; text-align: center; padding: 64px 20px; }
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { opacity: .9; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Page content (legal/subpages) */
.page-hero { background: var(--bg-alt); padding: 48px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-hero p { color: var(--text-light); }
.page-content { max-width: 800px; margin: 0 auto; padding: 48px 20px; }
.page-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--primary-dark); }
.page-content h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.page-content p, .page-content li { margin-bottom: 12px; color: var(--text); }
.page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content .updated { color: var(--text-light); font-size: .9rem; margin-bottom: 32px; }

/* Contact form */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; font-family: inherit;
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer { background: #111827; color: #d1d5db; padding: 48px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; max-width: 1140px; margin: 0 auto 32px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #9ca3af; text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 24px; max-width: 1140px; margin: 0 auto; font-size: .85rem; color: #6b7280; }
.footer-disclosure { background: #1f2937; padding: 16px 20px; text-align: center; font-size: .82rem; color: #9ca3af; border-top: 1px solid #374151; }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); }

/* Image showcase */
.image-showcase { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.image-showcase img { width: 100%; height: 360px; object-fit: cover; }

/* About team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.team-member { text-align: center; }
.team-member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--primary); }
.team-member h4 { margin-bottom: 4px; }
.team-member p { color: var(--text-light); font-size: .85rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .main-nav ul { gap: 14px; font-size: .85rem; }
  .header-inner { flex-direction: column; gap: 12px; }
}
