/* Tata Trusts - Shared Styles */
/* Common styles used across all pages in the RFP project */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --tata-dark: #23272b;
  --tata-blue: #9fcdff;
  --tata-red: #d0362d;
  --tata-teal: #17a2b8;
  --tata-success: #28a745;
  --tata-gray: #6c757d;
  --tata-light: #f5f5f5;
  --tata-medium-gray: #6c757d;
  --tata-light-gray: #f5f5f5;
}

/* ========================================
   Global Reset
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   Typography & Body
   ======================================== */
body {
  font-family:
    "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--tata-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--tata-dark);
  font-size: 1.25rem;
}

.nav-link {
  color: var(--tata-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--tata-teal);
}

/* ========================================
   Hero Sections
   ======================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #23272b 0%, #3a4047 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,<svg width=\"100\" height=\"100\" xmlns=\"http://www.w3.org/2000/svg\"><rect fill=\"rgba(159,205,255,0.03)\" width=\"50\" height=\"50\"/><rect fill=\"rgba(159,205,255,0.03)\" x=\"50\" y=\"50\" width=\"50\" height=\"50\"/></svg>");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-meta-item {
  text-align: center;
}

.hero-meta-label {
  font-size: 0.875rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-meta-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ========================================
   Scroll Indicator
   ======================================== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ========================================
   Story Sections
   ======================================== */
.story-section {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
}

.story-section:nth-child(even) {
  background: var(--tata-light-gray);
}

.section-number {
  font-size: 0.875rem;
  color: var(--tata-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--tata-dark);
}

.section-description {
  font-size: 1.125rem;
  color: var(--tata-medium-gray);
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ========================================
   Cards
   ======================================== */
.insight-card {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.insight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.insight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--tata-teal);
  color: white;
}

.insight-category {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--tata-dark);
}

/* ========================================
   Badges & Labels
   ======================================== */
.insight-impact {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-high {
  background: rgba(208, 54, 45, 0.1);
  color: var(--tata-red);
}

.impact-medium {
  background: rgba(255, 193, 7, 0.1);
  color: #f57c00;
}

.surprise-badge {
  background: rgba(23, 162, 184, 0.1);
  color: var(--tata-teal);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.payment-badge {
  background: rgba(208, 54, 45, 0.1);
  color: var(--tata-red);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tata-teal);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tata-teal);
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--tata-teal);
  z-index: 2;
}

.timeline-marker.milestone {
  width: 32px;
  height: 32px;
  background: var(--tata-red);
  box-shadow: 0 0 0 2px var(--tata-red);
}

.timeline-date {
  font-weight: 700;
  color: var(--tata-teal);
  margin-bottom: 0.5rem;
}

.timeline-event {
  font-weight: 600;
  color: var(--tata-dark);
}

.timeline-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.status-completed {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.status-upcoming {
  background: rgba(255, 193, 7, 0.1);
  color: #f57c00;
}

.status-future {
  background: rgba(108, 117, 125, 0.1);
  color: var(--tata-medium-gray);
}

/* ========================================
   Chart Containers
   ======================================== */
.chart-container {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
  min-height: 400px;
}

.chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--tata-dark);
}

.chart-loading,
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  background: var(--tata-red);
  border-color: var(--tata-red);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #b82f27;
  border-color: #b82f27;
}

.btn-outline-primary {
  color: var(--tata-red);
  border-color: var(--tata-red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--tata-red);
  border-color: var(--tata-red);
  color: white;
}

.btn-primary-custom {
  background: var(--tata-red);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: #b82f27;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 54, 45, 0.3);
  color: white;
}

.btn-secondary-custom {
  background: transparent;
  color: var(--tata-dark);
  border: 2px solid var(--tata-dark);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: var(--tata-dark);
  color: white;
}

/* ========================================
   Form Controls
   ======================================== */
.form-select,
.form-control {
  border-radius: 4px;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--tata-teal);
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* ========================================
   Stats Grid & Cards
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--tata-teal);
  line-height: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--tata-red);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--tata-medium-gray);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-change.positive {
  color: var(--tata-success);
}

.stat-change.negative {
  color: var(--tata-red);
}

/* ========================================
   Deliverables List
   ======================================== */
.deliverables-list {
  list-style: none;
  padding: 0;
}

.deliverable-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.deliverable-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.deliverable-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tata-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.deliverable-content {
  flex: 1;
}

.deliverable-name {
  font-weight: 700;
  color: var(--tata-dark);
  margin-bottom: 0.25rem;
}

.deliverable-description {
  color: var(--tata-medium-gray);
  font-size: 0.9375rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--tata-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer a {
  color: var(--tata-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Text & Background Utilities
   ======================================== */
.text-tata-dark {
  color: var(--tata-dark);
}

.text-tata-red {
  color: var(--tata-red);
}

.text-tata-teal {
  color: var(--tata-teal);
}

.text-tata-gray {
  color: var(--tata-gray);
}

.bg-tata-light {
  background: var(--tata-light);
}

.bg-tata-dark {
  background: var(--tata-dark);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-marker {
    left: 30px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 2rem;
  }
}
