/* ═══════════════════════════════════════════════════
   KAVE — B2B Page
   ═══════════════════════════════════════════════════ */

/* ═══ HERO ═══ */
.b2b-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  background: var(--color-bg);
}

.b2b-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--gutter) 60px;
}

.b2b-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 20px;
}

.b2b-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.b2b-hero-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.b2b-hero-cta { margin-bottom: 48px; }

.b2b-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.b2b-stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.b2b-stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.b2b-hero-right {
  position: relative;
  overflow: hidden;
}

.b2b-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══ SERVICES ═══ */
.b2b-services {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.b2b-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 5px;
}

.b2b-service-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
  height: 480px;
  background: #222;
}

.b2b-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.b2b-service-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.4);
}

.b2b-service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.b2b-service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 36px 32px;
}

.b2b-service-num {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: 12px;
}

.b2b-service-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.b2b-service-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 280px;
}

.b2b-service-link {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.b2b-service-card:hover .b2b-service-link { opacity: 1; transform: translateY(0); }

.b2b-service-link .arrow {
  width: 28px;
  height: 1px;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease) 0.1s;
}

.b2b-service-card:hover .b2b-service-link .arrow { transform: scaleX(1); }

/* ═══ WHY KAVE — Slider Widget ═══ */
.b2b-why {
  padding: 80px 0;
  background: var(--color-bg);
}

.b2b-why-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 0;
  padding: 0 80px 0 var(--gutter);
  align-items: stretch;
  min-height: 620px;
}

/* Left: items */
.b2b-why-left {
  padding-right: 48px;
  display: flex;
  flex-direction: column;
}

.b2b-why-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  flex: 1;
}

.b2b-why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  position: relative;
  align-items: start;
  cursor: pointer;
  transition: opacity 0.4s var(--ease);
}

/* Bottom border — base (gray) */
.b2b-why-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-line);
}

/* Animated fill line */
.b2b-why-item .fill-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  width: 0%;
  background: var(--color-text);
  z-index: 1;
  transition: none;
}

.b2b-why-item.active .fill-line {
  animation: whyFill 6s linear forwards;
}

@keyframes whyFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Dim inactive items */
.b2b-why-list.has-active .b2b-why-item { opacity: 0.4; }
.b2b-why-list.has-active .b2b-why-item.active { opacity: 1; }

.b2b-why-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1;
  transition: color 0.4s var(--ease);
}

.b2b-why-item.active .b2b-why-num { color: var(--color-text); }

.b2b-why-item h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.b2b-why-item p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Right: image slider — award-winning parallax transitions */
.b2b-why-right {
  position: relative;
  overflow: hidden;
}

.b2b-why-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  top: -10%;
  object-fit: cover;
  will-change: transform, opacity, clip-path;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.15);
  opacity: 0;
}

.b2b-why-img.active {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  opacity: 1;
}

.b2b-why-img.exiting {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.05);
  opacity: 0;
}

/* ═══ PROJECTS CAROUSEL ═══ */
.b2b-projects {
  padding: 80px 0;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.b2b-track {
  display: flex;
  gap: 24px;
  padding: 0 var(--gutter) 10px;
  scroll-padding-left: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.b2b-track::-webkit-scrollbar { display: none; }
.b2b-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.b2b-track.dragging * { pointer-events: none; }

.b2b-project-card {
  flex: 0 0 calc((100vw - 120px - 36px) / 2.5);
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
  overflow: hidden;
  height: 420px;
  background: #222;
}

.b2b-project-card img.b2b-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.75);
}

.b2b-project-card:hover img.b2b-cover {
  transform: scale(1.06);
  filter: brightness(0.6);
}

/* Gradient overlay */
.b2b-project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Info — bottom left inside the card */
.b2b-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.b2b-project-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.b2b-project-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b-project-text { flex: 1; min-width: 0; }

.b2b-project-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: #fff;
  display: block;
  margin-bottom: 3px;
  background-image: linear-gradient(#fff, #fff);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.7s var(--ease);
  padding-bottom: 2px;
}

.b2b-project-card:hover .b2b-project-name { background-size: 100% 1px; }

.b2b-project-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  display: block;
}

.b2b-project-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter) 0;
}

.b2b-progress {
  flex: 1;
  height: 1px;
  background: var(--color-line);
  position: relative;
  margin-right: 32px;
  max-width: 320px;
  overflow: hidden;
}

.b2b-progress span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--color-text);
}

.b2b-nav-btns {
  display: flex;
  gap: 10px;
}

.b2b-nav-btns button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-base) var(--ease), color var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
  will-change: transform;
}

.b2b-nav-btns button:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.b2b-nav-btns button:active { transform: scale(0.92) !important; }
.b2b-nav-btns svg { width: 15px; height: 15px; }

/* ═══ PROCESS ═══ */
.b2b-process {
  padding: 80px 0;
  background: var(--color-bg);
}

.b2b-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 var(--gutter);
  position: relative;
}

/* Connecting line */
.b2b-process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(var(--gutter) + 24px);
  right: calc(var(--gutter) + 24px);
  height: 1px;
  background: var(--color-line);
}

.b2b-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.b2b-step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text);
  position: relative;
  z-index: 2;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.b2b-step:hover .b2b-step-num {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.b2b-step h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.b2b-step p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}

/* ═══ INQUIRY FORM ═══ */
.b2b-inquiry {
  background: var(--color-text);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.b2b-inquiry-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(0.5);
  pointer-events: none;
}

.b2b-inquiry-inner { position: relative; z-index: 2; }

.b2b-inquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 var(--gutter);
  align-items: start;
}

.b2b-inquiry-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.b2b-inquiry-left p {
  font-family: var(--font-body);
  font-size: 15px;
  opacity: 0.6;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 400px;
}

.b2b-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b2b-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  opacity: 0.7;
}

.b2b-trust-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.5; }

/* Form */
.b2b-form { display: flex; flex-direction: column; gap: 16px; }

.b2b-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.b2b-form input,
.b2b-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color var(--duration-base) var(--ease), background var(--duration-base);
}

.b2b-form input:focus,
.b2b-form textarea:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.b2b-form input::placeholder,
.b2b-form textarea::placeholder { color: rgba(255,255,255,0.25); }

.b2b-form textarea { min-height: 100px; resize: vertical; }

/* Phone wrap dark variant */
.b2b-form .phone-wrap {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.b2b-form .phone-wrap:focus-within {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

.b2b-form .country-native { border-right-color: rgba(255,255,255,0.12); }
.b2b-form .country-code-label { color: #fff; }
.b2b-form .country-flag { filter: none; }
.b2b-form .phone-wrap input[type="tel"] { color: #fff; }
.b2b-form .phone-wrap input[type="tel"]::placeholder { color: rgba(255,255,255,0.25); }
.b2b-form .country-native select { color: #fff; }
.b2b-form .country-chevron { stroke: #fff; }

.b2b-form-submit {
  position: relative;
  width: 100%;
  padding: 20px 28px;
  margin-top: 8px;
  background: #fff;
  color: var(--color-text);
  border: 2px solid #fff;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--duration-slow) var(--ease);
}

.b2b-form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: translateY(101%);
  transition: transform var(--duration-slow) var(--ease);
  z-index: -1;
}

.b2b-form-submit:hover::before { transform: translateY(0); }
.b2b-form-submit:hover { color: #fff; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  .b2b-hero { grid-template-columns: 1fr; min-height: auto; }
  .b2b-hero-right { height: 50vh; }
  .b2b-services-grid { grid-template-columns: 1fr; gap: 5px; }
  .b2b-service-card { height: 360px; }
  .b2b-why-inner { grid-template-columns: 1fr; min-height: auto; padding: 0 var(--gutter); }
  .b2b-why-left { padding-right: 0; }
  .b2b-why-right { height: 420px; margin-top: 32px; position: relative; }
  .b2b-project-card { flex-basis: calc((100vw - 64px - 24px) / 1.8); height: 360px; }
  .b2b-progress { margin-right: 20px; }
  .b2b-nav-btns button { width: 50px; height: 50px; }
  .b2b-process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .b2b-process-grid::before { display: none; }
  .b2b-inquiry-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .b2b-hero { padding-top: 60px; }
  .b2b-hero-left { padding: 32px var(--gutter) 40px; }
  .b2b-hero-title { font-size: 36px; }
  .b2b-stats { gap: 24px; flex-wrap: wrap; }
  .b2b-stat-num { font-size: 28px; }
  .b2b-hero-right { height: 40vh; }
  .b2b-services, .b2b-why, .b2b-projects, .b2b-process, .b2b-inquiry { padding: 60px 0; }
  .b2b-project-card { flex-basis: 85%; height: 320px; }
  .b2b-process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .b2b-step p { max-width: 100%; }
}

@media (max-width: 480px) {
  .b2b-hero-title { font-size: 30px; }
  .b2b-process-grid { grid-template-columns: 1fr; }
}
