/* === WebCRS Bootstrap 5 Custom Styles === */
/* No inline CSS. All styles are here. */

:root {
  --primary: #B11226;
  --primary-dark: #8C0F1F;
  --primary-light: #FBE5E8;
  --charcoal: #1A1A1A;
  --offwhite: #F7F7F7;
  --text-muted: #6B7280;
  --bg-dark: #111111;
  --grid-bg: #F0F0F0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: #fff;
  overflow-x: hidden;
}

/* ==========================================
   NAVBAR
   ========================================== */
.webcrs-navbar {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 0.75rem 0;
}
.webcrs-navbar .navbar-brand img {
  height: 40px;
}
.webcrs-navbar .nav-link {
  color: #6B7280 !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.webcrs-navbar .nav-link:hover,
.webcrs-navbar .nav-link.active {
  color: var(--primary) !important;
}
.webcrs-navbar .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}
.webcrs-navbar .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.webcrs-navbar .btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}
.webcrs-navbar .btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(#E5E7EB 1px, transparent 1px),
    linear-gradient(90deg, #E5E7EB 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.hero-section .container {
  position: relative;
  z-index: 1;
}
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.section-pill::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--primary);
}
.hero-headline {
  font-size: 45px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .hero-headline {
    font-size: 96px;
  }
  .hero-subheadline {
    font-size: 1.5rem;
  }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-webcrs {
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.btn-webcrs-red {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-webcrs-red:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-webcrs-outline {
  border: 1px solid #D1D5DB;
  color: var(--charcoal);
  background: #fff;
}
.btn-webcrs-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================
   CARDS
   ========================================== */
.card-webcrs {
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  background: #fff;
  transition: all 0.3s;
}
.card-webcrs:hover {
  border-color: rgba(177,18,38,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.card-webcrs-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-webcrs-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.card-webcrs-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.card-webcrs-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.card-webcrs-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}
.card-webcrs-link:hover {
  text-decoration: underline;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-light {
  background: var(--offwhite);
  padding: 7rem 0;
  border-top: 1px solid #E5E7EB;
}
.section-white {
  background: #fff;
  padding: 7rem 0;
  border-top: 1px solid #F3F4F6;
}
.section-dark {
  background: var(--bg-dark);
  padding: 7rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}
.section-dark .section-title {
  color: #fff;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ==========================================
   METRICS BAR
   ========================================== */
.metrics-bar {
  background: var(--grid-bg);
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 2rem 0;
}
.metrics-bar .metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: Georgia, 'Times New Roman', serif;
}
.metrics-bar .metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   MARQUEE
   ========================================== */
.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   SDG CARDS
   ========================================== */
.sdg-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.3s;
}
.sdg-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.sdg-header {
  padding: 1.5rem;
  color: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sdg-header .sdg-num {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.6;
}
.sdg-header .sdg-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
  letter-spacing: 0.1em;
}
.sdg-body {
  padding: 1.25rem;
  background: #fff;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial-card {
  background: var(--offwhite);
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  border-color: rgba(177,18,38,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.testimonial-quote {
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid rgba(177,18,38,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================
   FOOTER
   ========================================== */
.webcrs-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
}
.webcrs-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.webcrs-footer a:hover {
  color: #fff;
}
.webcrs-footer .footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.webcrs-footer .footer-brand {
  display: inline-block;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}
.webcrs-footer .footer-brand img {
  height: 32px;
}

/* ==========================================
   INNER PAGES
   ========================================== */
.page-hero {
  position: relative;
  padding: 5rem 0;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid #F3F4F6;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(#E5E7EB 1px, transparent 1px),
    linear-gradient(90deg, #E5E7EB 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}
.page-hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 300px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

/* ==========================================
   TABS
   ========================================== */
.webcrs-tabs .nav-tabs {
  border-bottom: 2px solid #E5E7EB;
  gap: 0.25rem;
}
.webcrs-tabs .nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  transition: all 0.2s;
}
.webcrs-tabs .nav-tabs .nav-link:hover {
  border-bottom-color: var(--primary-light);
  color: var(--primary);
}
.webcrs-tabs .nav-tabs .nav-link.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-webcrs .modal-header {
  border-bottom: 1px solid #E5E7EB;
  padding: 1.25rem;
}
.modal-webcrs .modal-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
}
.modal-webcrs .modal-body {
  padding: 1.5rem;
}
.modal-webcrs .modal-footer {
  border-top: 1px solid #E5E7EB;
  padding: 1rem 1.25rem;
}

/* ==========================================
   BADGES
   ========================================== */
.badge-webcrs {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}
.badge-webcrs-red {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-webcrs-dark {
  background: var(--charcoal);
  color: #fff;
}

/* ==========================================
   FORMS
   ========================================== */
.form-webcrs .form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-webcrs .form-control,
.form-webcrs .form-select {
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-webcrs .form-control:focus,
.form-webcrs .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(177,18,38,0.1);
}
.form-webcrs .form-control::placeholder {
  color: #9CA3AF;
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E5E7EB;
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.timeline-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.product-card {
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  background: #fff;
  transition: all 0.3s;
}
.product-card:hover {
  border-color: rgba(177,18,38,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ==========================================
   MAP EMBED
   ========================================== */
.map-embed {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}

/* ==========================================
   MOBILE NAV
   ========================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .hero-headline {
    font-size: 40px;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--offwhite);
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}
