/* ============================================
   Canadian Resource Distribution — Stylesheet
   Color Scheme: Red, White, Black
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red:       #C8102E;
  --red-dark:  #A00D24;
  --red-light: #E8354D;
  --black:     #111111;
  --black-soft: #1A1A1A;
  --gray-900:  #222222;
  --gray-800:  #333333;
  --gray-700:  #444444;
  --gray-600:  #666666;
  --gray-400:  #999999;
  --gray-200:  #E0E0E0;
  --gray-100:  #F4F4F4;
  --white:     #FFFFFF;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius:    12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}


/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

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

.nav-links li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}


/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 50%, #2a0a0f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200,16,46,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,0.15);
  color: var(--red-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(200,16,46,0.25);
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}


/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(200,16,46,0.08);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-tag-light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-header-light h2 {
  color: var(--white);
}

.section-desc {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-header-light .section-desc {
  color: rgba(255,255,255,0.55);
}


/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: rgba(200,16,46,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.about-icon {
  width: 64px;
  height: 64px;
  background: rgba(200,16,46,0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 24px;
  color: var(--red);
  transition: all 0.3s;
}

.about-card:hover .about-icon {
  background: var(--red);
  color: var(--white);
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}


/* ---------- PROCESS ---------- */
.process {
  padding: 100px 0;
  background: var(--black);
}

.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.process-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: all 0.3s;
  position: relative;
}

.process-step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,16,46,0.3);
  transform: translateY(-4px);
}

.step-number {
  font-size: 42px;
  font-weight: 800;
  color: rgba(200,16,46,0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step:hover .step-number {
  color: rgba(200,16,46,0.4);
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  color: var(--white);
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,16,46,0.4);
  font-size: 18px;
  margin-top: 70px;
  flex-shrink: 0;
}


/* ---------- PRODUCTS ---------- */
.products {
  padding: 100px 0;
  background: var(--gray-100);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-badge {
  display: inline-block;
  background: rgba(200,16,46,0.08);
  color: var(--red);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.product-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--red);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.product-card:hover .product-icon-wrap {
  background: var(--red);
  color: var(--white);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.product-size {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 14px;
}

.product-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.product-apps li {
  font-size: 13px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-apps li i {
  color: var(--red);
  font-size: 11px;
}


/* ---------- CTA ---------- */
.cta {
  padding: 80px 0;
  background: var(--red);
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}


/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-footer {
  margin-bottom: 20px;
}

.logo-icon-footer {
  background: var(--red);
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 360px;
}

.footer-contact h3,
.footer-links h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.contact-item i {
  width: 16px;
  text-align: center;
  color: var(--red);
  font-size: 14px;
}

.contact-item a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.footer-links li a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .process-connector { display: none; }
  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .process-step { max-width: none; }
}

@media (max-width: 768px) {
  .navbar-inner { height: 64px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(17,17,17,0.98);
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.active { display: flex; }

  .mobile-menu-btn { display: block; }

  .logo-name { font-size: 14px; }
  .logo-tagline { font-size: 10px; }

  .hero { min-height: auto; }
  .hero-content { padding: 100px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: flex-start; }
  .stat-divider { width: 60px; height: 1px; }

  .about { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }

  .process { padding: 64px 0; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }

  .products { padding: 64px 0; }
  .products-grid { grid-template-columns: 1fr; }

  .cta { padding: 56px 0; }
  .cta h2 { font-size: 28px; }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-header h2 { font-size: 24px; }
}
