/* ====================================================================
   home/style.blade.php
   CSS for home/ partials (slider, founder, feg, services, etc.)
   Loaded by home/welcome.blade.php.
   ==================================================================== */

/* =================== HERO SLIDER (home/slider.blade.php) =================== */

.site-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  background: #0a0f1f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.site-hero-slide.is-active {
  opacity: 1;
}

.site-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(36, 54, 121, 0.65) 50%,
    rgba(15, 23, 42, 0.75) 100%
  );
  z-index: 1;
}

.site-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #fff;
  /* Top padding clears the transparent nav (logo ~64px + bar padding) */
  padding: 120px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-hero-eyebrow {
  display: inline-block;
  background: var(--site-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.35);
}

.site-hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  max-width: 900px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-hero-title em {
  font-style: normal;
  color: #ffd6a8;
  position: relative;
}

.site-hero-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.site-hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.site-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--site-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(237, 28, 36, 0.4);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  white-space: nowrap;
}

.site-hero-cta:hover,
.site-hero-cta:focus {
  background: var(--site-red-deep);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(237, 28, 36, 0.5);
}

.site-hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 30px;
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}

.site-hero-cta-ghost:hover,
.site-hero-cta-ghost:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff !important;
}

/* Slide controls */
.site-hero-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.site-hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.site-hero-arrow:hover {
  background: var(--site-red);
  border-color: var(--site-red);
  transform: scale(1.08);
}

/* Slide dots */
.site-hero-dots {
  position: absolute;
  bottom: 24px;
  right: 30px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.site-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    width 0.25s ease;
}

.site-hero-dot.is-active {
  background: var(--site-red);
  width: 28px;
  border-radius: 5px;
}

/* Steps strip below hero */
.site-hero-steps {
  background: #fff;
  /* Breathing room above (separates from hero) and below (separates from next section) */
  padding: 56px 0 64px;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 5;
}

.site-hero-steps-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-hero-step {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 180px;
  min-width: 0;
}

.site-hero-step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--site-blue-soft);
  color: var(--site-blue);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.site-hero-step:hover .site-hero-step-num {
  background: var(--site-red);
  color: #fff;
}

.site-hero-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--site-dark);
  margin: 0 0 2px;
  line-height: 1.3;
}

.site-hero-step-desc {
  font-size: 12.5px;
  color: var(--site-text-muted);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991px) {
  .site-hero {
    min-height: 60vh;
  }
  .site-hero-content {
    padding: 110px 20px 50px;
  }
}

@media (max-width: 575px) {
  .site-hero {
    min-height: 68vh;
  }
  .site-hero-content {
    padding: 95px 16px 70px;
  }
  .site-hero-dots {
    bottom: 18px;
    right: 16px;
  }
  .site-hero-controls {
    bottom: 24px;
  }
  .site-hero-step {
    flex: 1 1 100%;
  }
  .site-hero-step-desc {
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }
}

/* =================== WHY CHOOSE US (home/why-japan.blade.php) =================== */

.why-choose-us {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(
      1200px 600px at 90% -10%,
      rgba(49, 72, 157, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 110%,
      rgba(237, 28, 36, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #0f1b4d 0%, #15245f 100%);
  color: #fff;
  overflow: hidden;
}

/* Subtle decorative dot grid */
.why-choose-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

.why-choose-header {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.why-choose-eyebrow {
  display: inline-block;
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.4);
  color: #ff8a8e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.why-choose-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  line-height: 1.15;
}

.why-choose-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.why-choose-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-choose-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 26px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

/* Top accent line (red, animates on hover) */
.why-choose-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--site-red), #ff6b6b);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.why-choose-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

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

.why-choose-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--site-red) 0%,
    var(--site-red-deep) 100%
  );
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(237, 28, 36, 0.35);
  transition: transform 0.3s ease;
}

.why-choose-card:hover .why-choose-card-icon {
  transform: rotate(-6deg) scale(1.08);
}

.why-choose-card-stat {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.why-choose-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (max-width: 575px) {
  .why-choose-us {
    padding: 72px 0;
  }
  .why-choose-header {
    margin-bottom: 40px;
  }
  .why-choose-card {
    padding: 26px 22px;
  }
}

/* =================== FOUNDER CAROUSEL (home/founder.blade.php) =================== */

.site-founder {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(49, 72, 157, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 0% 100%,
      rgba(237, 28, 36, 0.06),
      transparent 60%
    ),
    #f7f8fc;
  overflow: hidden;
}

.site-founder-header {
  text-align: center;
  margin: 0 0 56px;
}

.site-founder-eyebrow {
  display: inline-block;
  background: rgba(49, 72, 157, 0.08);
  color: var(--site-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.site-founder-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--site-dark);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.15;
}

/* Carousel stage holds the decorative frame + slides */
.site-founder-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* Decorative frame: two overlapping offset squares behind the image */
.site-founder-frame {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 50%;
  height: calc(100% - 90px);
  pointer-events: none;
  z-index: 0;
}

.site-founder-frame-blue,
.site-founder-frame-red {
  position: absolute;
  border-radius: 18px;
  transition: transform 0.5s ease;
}

.site-founder-frame-blue {
  top: 0;
  left: 0;
  width: 80%;
  height: 90%;
  background: var(--site-blue);
  opacity: 0.12;
  transform: rotate(-2deg);
}

.site-founder-frame-red {
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 50%;
  background: var(--site-red);
  opacity: 0.18;
  transform: rotate(3deg);
}

/* Slides wrapper (relative positioned so slides stack) */
.site-founder-slides {
  position: relative;
}

/* Single slide layout — grid: image | content */
.site-founder-slide {
  display: none;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 60px;
}

.site-founder-slide.is-active {
  display: grid;
}

/* Animation only fires once JS has booted the carousel.
   First server-rendered paint has no animation, so slide 0 is immediately visible. */
.site-founder-stage.js-ready .site-founder-slide.is-active {
  animation: siteFounderFade 0.6s ease;
}

@keyframes siteFounderFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LEFT — image */
.site-founder-media {
  position: relative;
  z-index: 2;
}

.site-founder-img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

/* Placeholder shown when a founder has no image */
.site-founder-img-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--site-blue-soft), #fff);
  color: var(--site-blue);
}
.site-founder-initial {
  font-size: 160px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 1;
  color: var(--site-blue);
  text-shadow: 0 4px 24px rgba(49, 72, 157, 0.15);
}

/* RIGHT — content */
.site-founder-body {
  position: relative;
  z-index: 2;
}

.site-founder-quote {
  position: absolute;
  top: -36px;
  left: -10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 140px;
  line-height: 1;
  color: var(--site-red);
  opacity: 0.18;
  pointer-events: none;
}

.site-founder-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--site-red);
  margin: 0 0 18px;
  padding-left: 26px;
  position: relative;
}

.site-founder-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: var(--site-red);
}

.site-founder-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--site-text);
  margin: 0 0 28px;
}

.site-founder-desc p {
  margin: 0 0 12px;
}

.site-founder-desc p:last-child {
  margin-bottom: 0;
}

.site-founder-meta {
  padding-top: 24px;
  border-top: 1px solid rgba(49, 72, 157, 0.12);
}

.site-founder-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--site-blue);
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}

.site-founder-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--site-text-muted);
  margin: 0;
  letter-spacing: 0.3px;
}

/* Dots */
.site-founder-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.site-founder-dot {
  /* Generous hit area — thin visual bar with invisible padding so
     taps/clicks land reliably on mobile and desktop */
  width: 32px;
  height: 28px;
  border: none;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.site-founder-dot::before {
  /* The actual visible bar (the full button height is the click target) */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(49, 72, 157, 0.25);
  transition:
    background 0.3s ease,
    width 0.3s ease,
    left 0.3s ease;
}

.site-founder-dot:hover::before {
  background: rgba(49, 72, 157, 0.5);
}

.site-founder-dot.is-active::before {
  background: var(--site-red);
  width: 150%;
  left: -25%;
}

/* Empty state fallback */
.site-founder-empty {
  text-align: center;
  color: var(--site-text-muted);
  font-size: 16px;
  padding: 60px 20px;
}

/* Tablet */
@media (max-width: 991px) {
  .site-founder-slide {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .site-founder-frame {
    display: none;
  }

  .site-founder-img {
    height: 380px;
    max-width: 420px;
    margin: 0 auto;
  }

  .site-founder-quote {
    left: 50%;
    transform: translateX(-50%);
    top: -50px;
  }

  .site-founder-kicker {
    padding-left: 0;
  }

  .site-founder-kicker::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .site-founder {
    padding: 72px 0;
  }
  .site-founder-header {
    margin-bottom: 40px;
  }
  .site-founder-img {
    height: 320px;
  }
  .site-founder-name {
    font-size: 20px;
  }
  .site-founder-desc {
    font-size: 16px;
  }
  .site-founder-dot {
    width: 24px;
  }
  .site-founder-dot.is-active::before {
    width: 150%;
    left: -25%;
  }
}
