/* Koto by Toyota Case Study - Custom Styles */
/* Red accent color theme (Toyota brand color) */

:root {
  --color-accent: #EB0A1E;
  --color-background-accent: #EB0A1E;
}

/* Navigation - Static positioning, shares background with hero */
.navigation {
  position: relative !important;
  background: transparent !important;
  border-bottom: none;
  transform: none !important;
  z-index: 2;
}

.navigation.nav-hidden {
  transform: none !important;
}

.nav-container {
  border-bottom: none;
}

.nav-logo {
  color: white;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

/* Hero Wrapper - Contains both nav and hero section with shared background */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #EC4899 0%, #EF4444 100%);
  min-height: 0;
}

/* Ensure main content has white background */
main {
  background: var(--color-background-primary);
  position: relative;
  z-index: 2;
}

/* Hero Section - Remove negative margin since nav is not fixed */
.hero-section {
  background: transparent;
  position: relative;
  margin-top: 0 !important;
  z-index: 1;
}

/* Override tag colors */
.tag {
  color: #EB0A1E;
  border-color: rgba(235, 10, 30, 0.15);
}

.tag:hover {
  color: #EB0A1E;
  border-color: rgba(235, 10, 30, 0.25);
}

/* Override text highlights */
::selection {
  background: rgba(235, 10, 30, 0.15);
}

/* Override feature card hover border */
.case-study-section:not(.section-accent) .feature-card:hover {
  border-color: rgba(235, 10, 30, 0.25);
}

/* Override feature card accent bar */
.case-study-section:not(.section-accent) .feature-card::before {
  background: linear-gradient(180deg, #EB0A1E 0%, transparent 100%);
}

/* Override icon container colors */
.case-study-section:not(.section-accent) .feature-card-icon {
  background: #EB0A1E;
  width: 56px;
  height: 56px;
}

.case-study-section:not(.section-accent) .feature-card-icon .material-icons {
  color: white;
  font-size: 24px;
}

/* Red gradient for accent sections */
.case-study-section.section-accent {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #EB0A1E 0%, #FF6B6B 100%);
}

.case-study-section.section-accent::before {
  background: radial-gradient(
    circle at 30% 40%,
    rgba(255, 107, 107, 0.6) 0%,
    rgba(255, 107, 107, 0.4) 30%,
    rgba(255, 107, 107, 0.2) 60%,
    rgba(255, 107, 107, 0) 100%
  );
}

.case-study-section.section-accent::after {
  background: radial-gradient(
    circle at 60% 50%,
    rgba(235, 10, 30, 0.6) 0%,
    rgba(235, 10, 30, 0.4) 30%,
    rgba(235, 10, 30, 0.2) 60%,
    rgba(235, 10, 30, 0) 100%
  );
}

/* Override section divider color */
.section-divider {
  background: rgba(235, 10, 30, 0.2);
}

/* Override text highlight color */
.text-highlight-blue {
  color: #EB0A1E;
}

/* Results Grid & Cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.result-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 10, 30, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.result-metric {
  font-size: 48px;
  font-weight: 600;
  color: #EB0A1E;
  margin: 0 0 12px 0;
  line-height: 1;
}

.result-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.result-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}
