/* ============================================================================
   QCCI Website — Professional Static Site
   Colors derived from existing brand (dark navy #1f1f63)
   ============================================================================ */

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

:root {
  --navy: #1f1f63;
  --navy-light: #2a2a7a;
  --navy-dark: #14143f;
  --gold: #c9a84c;
  --gold-light: #e0c76e;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --danger: #c0392b;
  --success: #27ae60;
  --max-width: 1100px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

/* ── HEADER & NAV ───────────────────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── PAGE HEADER (non-home pages) ───────────────────────────────────────── */

.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 60px 0 48px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
}

/* ── HEADINGS ───────────────────────────────────────────────────────────── */

h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  margin-top: 32px;
}

.section-intro {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 48px;
}

/* ── SERVICES GRID ──────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

.service-card .learn-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.service-card .learn-more:hover {
  color: var(--gold);
}

/* ── STATS BAR ──────────────────────────────────────────────────────────── */

.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── CONTENT PAGES ──────────────────────────────────────────────────────── */

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px;
}

.content h2 {
  margin-top: 48px;
}

.content h3 {
  margin-top: 36px;
}

.content p {
  margin-bottom: 16px;
}

.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.content th, .content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.content th {
  background: var(--off-white);
  font-weight: 600;
  color: var(--navy);
}

.content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--off-white);
  border-radius: 0 6px 6px 0;
  color: var(--text-light);
  font-style: italic;
}

.content strong {
  color: var(--navy);
}

/* ── BLOG LIST ──────────────────────────────────────────────────────────── */

.blog-list {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px;
  transition: all 0.2s;
}

.blog-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.blog-card h3 a {
  color: var(--navy);
}

.blog-card h3 a:hover {
  color: var(--gold);
}

.blog-card p {
  color: var(--text-light);
  font-size: 15px;
}

.blog-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* ── CTA SECTION ────────────────────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  font-size: 18px;
}

.cta-contact {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-contact a {
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
}

.cta-contact a:hover {
  color: var(--gold-light);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  h2 {
    font-size: 24px;
  }
}
