/* ==========================================================================
   C8 Ventures - Site-Specific Styles
   ========================================================================== */

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(42, 49, 66, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-sm) 0;
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.nav__logo {
  color: var(--color-white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.nav__logo:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav__menu {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-vermillion);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-image: url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-lg) var(--space-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.4),
    rgba(26, 26, 26, 0.6)
  );
}

/* Hero buttons now use Tailwind utility classes directly in HTML */

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section {
  padding: var(--space-xl) var(--space-md);
}

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

.section--mist {
  background: var(--color-mist);
}

.section--dark {
  background: #2a3142;
  color: var(--color-white);
}

.section--accent {
  background: var(--color-vermillion);
  color: var(--color-white);
}

.section__intro {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  color: var(--color-stone);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__intro:last-child {
  margin-bottom: 0;
}

.section__intro .highlight {
  color: #9b87d9;
  font-weight: 600;
}

.section__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-sm);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.section__heading--center {
  text-align: center;
}

.section__heading--light {
  color: var(--color-white);
}

.section__subheading {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-stone);
  max-width: 800px;
}

.section__subheading--center {
  text-align: center;
  margin: 0 auto;
}

.section__subheading--light {
  color: rgba(255, 255, 255, 0.9);
}

/* Approach Grid */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.approach-item {
  text-align: left;
}

.approach-item__number {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 300;
  color: #b8a4e8;
  margin-bottom: var(--space-sm);
}

.approach-item__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.approach-item__description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-stone);
}

/* Value Grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.value-item {
  text-align: left;
}

.value-item__number {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 300;
  color: #b8a4e8;
  margin-bottom: var(--space-sm);
}

.value-item__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.value-item__description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-stone);
}

/* Featured Portfolio Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.featured-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.featured-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin-bottom: var(--space-md);
}

.featured-card__logo-img {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.featured-card:hover .featured-card__logo-img {
  opacity: 1;
  transform: scale(1.05);
}

.featured-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.featured-card__description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  min-height: 3.4em;
}

.featured-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.stat__value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1;
}

.stat__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.3;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.partner-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.partner-card__logo {
  max-width: 120px;
  max-height: 80px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.partner-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.partner-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-stone);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 968px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  display: block;
}

.team-member__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}

.team-member__role {
  font-size: 1rem;
  color: #9b87d9;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.team-member__bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
  text-align: center;
}

.team-member__highlights-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  text-align: center;
  position: relative;
}

.team-member__highlights-heading::before,
.team-member__highlights-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--color-stone);
  opacity: 0.3;
}

.team-member__highlights-heading::before {
  right: calc(100% + 16px);
}

.team-member__highlights-heading::after {
  left: calc(100% + 16px);
}

.team-member__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-member__highlights li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-stone);
  margin-bottom: var(--space-xs);
  padding-left: 20px;
  position: relative;
  text-align: left;
  display: inline-block;
  width: 100%;
}

.team-member__highlights li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--color-stone);
  opacity: 0.5;
}

.team-member__link {
  display: inline-block;
  color: #9b87d9;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.team-member__link:hover {
  color: var(--color-vermillion);
  transform: translateX(4px);
}

/* Contact Section */
.contact-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Footer */
.footer {
  background: #2a3142;
  color: var(--color-white);
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer__logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  color: var(--color-white);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-vermillion);
}

.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav__menu {
    display: none;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .approach-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Carousel Component
   ========================================================================== */

.carousel-container {
  position: relative;
  padding: 0 var(--space-lg);
  overflow: hidden; /* Hide off-screen items */
}

.carousel-track {
  display: flex;
  gap: var(--space-md);
  transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
  will-change: transform;
}

/* Mobile: 1 card per page (100% width) */
.carousel-track > * {
  flex: 0 0 100%;
  min-width: 0; /* Prevent flex items from overflowing */
}

/* Tablet+: 2 cards per page (50% width minus gap) */
@media (min-width: 640px) {
  .carousel-track > * {
    flex: 0 0 calc(50% - (var(--space-md) / 2));
  }
}

/* Partners Carousel: 3 cards per row on desktop */
@media (min-width: 1024px) {
  .carousel-container--partners .carousel-track > * {
    flex: 0 0 calc(33.333% - (var(--space-md) * 2 / 3));
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 2px solid var(--color-vermillion);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 200ms cubic-bezier(0, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
  background: var(--color-vermillion);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(214, 73, 51, 0.3);
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 73, 51, 0.3);
}

.carousel-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-button--prev {
  left: 0;
}

.carousel-button--next {
  right: 0;
}

.carousel-button svg {
  width: 20px;
  height: 20px;
  fill: var(--color-vermillion);
  transition: fill 200ms ease;
}

.carousel-button:hover svg {
  fill: var(--color-white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) 0;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(214, 73, 51, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0, 0, 0.2, 1);
}

.carousel-dot:hover {
  background: rgba(214, 73, 51, 0.4);
  transform: scale(1.2);
}

.carousel-dot:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 73, 51, 0.3);
}

.carousel-dot--active {
  background: var(--color-vermillion);
  width: 32px;
  border-radius: 6px;
}

.carousel-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
  
  .carousel-button,
  .carousel-dot {
    transition: none;
  }
}